﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:controlsPrimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls"
    xmlns:dataPrimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:System="clr-namespace:System;assembly=mscorlib">

    <!--new color palette-->
    <Color
        x:Key="BorderColor1">#FF425080</Color>
    <Color
        x:Key="TextForegroundColor1">#FF425080</Color>
    <Color
        x:Key="PrimaryColor">#FF63AADA</Color>
    <Color
        x:Key="SecondaryColor">#FFA0FCFF</Color>
    <SolidColorBrush
        x:Key="ButtonFontColor"
        Color="#FF042271" />

    <LinearGradientBrush
        x:Name="LightGradient"
        EndPoint="0.5,1"
        StartPoint="0.5,0">
        <GradientStop
            Color="#FFE2F5FF" />
        <GradientStop
            Color="#FF5989A5"
            Offset="1" />
    </LinearGradientBrush>

    <!--ListBoxItemsPanelTemplateHorizontal-->
    <ItemsPanelTemplate
        x:Key="ListBoxItemsPanelTemplateHorizontal">
        <StackPanel
            Orientation="Horizontal">
            <i:Interaction.Behaviors>
                <ei:FluidMoveBehavior
                    AppliesTo="Children"
                    Duration="0:0:0.5">
                    <ei:FluidMoveBehavior.EaseY>
                        <CircleEase
                            EasingMode="EaseInOut" />
                    </ei:FluidMoveBehavior.EaseY>
                    <ei:FluidMoveBehavior.EaseX>
                        <CircleEase
                            EasingMode="EaseInOut" />
                    </ei:FluidMoveBehavior.EaseX>
                </ei:FluidMoveBehavior>
            </i:Interaction.Behaviors>
        </StackPanel>
    </ItemsPanelTemplate>

    <!--Thumb-->
    <Style
        TargetType="Thumb">
        <Setter
            Property="IsTabStop"
            Value="False" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition
                                        GeneratedDuration="00:00:00.1"
                                        To="MouseOver" />
                                    <VisualTransition
                                        GeneratedDuration="00:00:00.1"
                                        To="Pressed" />
                                </VisualStateGroup.Transitions>
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="Over"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="Press"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualElement"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="FocusStates">
                                <VisualState
                                    x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="FocusVisualElement"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Path
                            x:Name="Base"
                            Stretch="Fill"
                            StrokeLineJoin="Round"
                            Data="F1 M 0,1 C 0,0 1,0 1,0 L 7,0 C 7,0 7.750000,0 8,1 C 8.013672,1.054688 8,11.875000 8,11.875000 L 4.625000,15.250000 C 4.312500,15.583984 3.625000,15.250000 3.625000,15.250000 L 0,11.750000 C 0,11.750000 0,1.062500 0,1 Z">
                            <Path.Fill>
                                <SolidColorBrush
                                    Color="{StaticResource Arrow2}" />
                            </Path.Fill>
                        </Path>
                        <Path
                            x:Name="Over"
                            Stretch="Fill"
                            Data="F1 M 0,1 C 0,0 1,0 1,0 L 7,0 C 7,0 7.750000,0 8,1 C 8.013672,1.054688 8,11.875000 8,11.875000 L 4.625000,15.250000 C 4.312500,15.583984 3.625000,15.250000 3.625000,15.250000 L 0,11.750000 C 0,11.750000 0,1.062500 0,1 Z"
                            Opacity="0">
                            <Path.Fill>
                                <SolidColorBrush
                                    Color="{StaticResource Arrow2}" />
                            </Path.Fill>
                        </Path>
                        <Path
                            x:Name="Press"
                            Stretch="Fill"
                            Data="F1 M 0,1 C 0,0 1,0 1,0 L 7,0 C 7,0 7.750000,0 8,1 C 8.013672,1.054688 8,11.875000 8,11.875000 L 4.625000,15.250000 C 4.312500,15.583984 3.625000,15.250000 3.625000,15.250000 L 0,11.750000 C 0,11.750000 0,1.062500 0,1 Z"
                            Opacity="0">
                            <Path.Fill>
                                <SolidColorBrush
                                    Color="{StaticResource Arrow2}" />
                            </Path.Fill>
                        </Path>
                        <Path
                            x:Name="Highlight"
                            Margin="1"
                            Stretch="Fill"
                            Data="F1 M 0,1 C 0,0 1,0 1,0 L 7,0 C 7,0 7.750000,0 8,1 C 8.013672,1.054688 8,11.875000 8,11.875000 L 4.625000,15.250000 C 4.312500,15.583984 3.625000,15.250000 3.625000,15.250000 L 0,11.750000 C 0,11.750000 0,1.062500 0,1 Z">
                            <Path.Fill>
                                <SolidColorBrush
                                    Color="{StaticResource Arrow2}" />
                            </Path.Fill>
                        </Path>
                        <Path
                            x:Name="DisabledVisualElement"
                            Fill="#FFFFFFFF"
                            Stroke="#FFFFFFFF"
                            StrokeThickness="1"
                            StrokeLineJoin="Round"
                            Stretch="Fill"
                            Opacity="0.25"
                            Data="F1 M 0,1 C 0,0 1,0 1,0 L 7,0 C 7,0 7.750000,0 8,1 C 8.013672,1.054688 8,11.875000 8,11.875000 L 4.625000,15.250000 C 4.312500,15.583984 3.625000,15.250000 3.625000,15.250000 L 0,11.750000 C 0,11.750000 0,1.062500 0,1 Z"
                            IsHitTestVisible="false"
                            Visibility="Collapsed" />
                        <Path
                            x:Name="FocusVisualElement"
                            Margin="-1"
                            Stroke="{StaticResource btnFocus}"
                            StrokeThickness="1"
                            StrokeLineJoin="Round"
                            Stretch="Fill"
                            Data="F1 M 0.009766,1.453125 C 0.291016,0.093750 1.509766,0.000000 1.509766,0.000000 L 6.509766,0.000000 C 6.509766,0.000000 7.728516,0.000000 8.009766,1.500000 L 8.009766,11.500000 L 4.988770,15.200195 C 4.197266,15.854492 3.384766,15.166992 3.384766,15.166992 L 0.009766,11.500000 C 0.009766,11.500000 -0.012207,1.560059 0.009766,1.453125 Z"
                            IsHitTestVisible="false"
                            Visibility="Collapsed">
                            <Path.Fill>
                                <SolidColorBrush
                                    Color="{StaticResource Arrow2}" />
                            </Path.Fill>
                        </Path>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TabItem-->
    <Style
        TargetType="sdk:TabItem">
        <Setter
            Property="HorizontalContentAlignment"
            Value="Center" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Center" />
        <Setter
            Property="Padding"
            Value="10,6,10,6" />
        <Setter
            Property="MinWidth"
            Value="5" />
        <Setter
            Property="MinHeight"
            Value="5" />
        <Setter
            Property="IsTabStop"
            Value="False" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="sdk:TabItem">
                    <Grid
                        x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition
                                        GeneratedDuration="0" />
                                    <VisualTransition
                                        GeneratedDuration="0:0:0.1"
                                        To="MouseOver" />
                                </VisualStateGroup.Transitions>
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="LeftUnselectedOver"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="RightUnselectedOver"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BottomUnselectedOver"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="TopUnselectedOver"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualBottomSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualBottomUnSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualLeftSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualLeftUnSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualRightSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualRightUnSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualTopSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualTopUnSelected"
                                            Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="SelectionStates">
                                <VisualState
                                    x:Name="Unselected" />
                                <VisualState
                                    x:Name="Selected" />
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="FocusStates">
                                <VisualState
                                    x:Name="Focused" />
                                <VisualState
                                    x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid
                            x:Name="TemplateTopSelected"
                            Margin="-2,0,-2,0"
                            Canvas.ZIndex="1"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="BackgroundTop"
                                    Background="#FFFFFFFF"
                                    BorderThickness="3,3,3,0"
                                    CornerRadius="3"
                                    Padding="2,0,2,2"
                                    Margin="0,0,0,-4">
                                    <Border.BorderBrush>
                                        <SolidColorBrush
                                            Color="{StaticResource Arrow}" />
                                    </Border.BorderBrush>
                                </Border>
                                <ContentControl
                                    x:Name="HeaderTopSelected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False"
                                    FontWeight="Bold">
                                    <ContentControl.Foreground>
                                        <SolidColorBrush
                                            Color="{StaticResource Arrow}" />
                                    </ContentControl.Foreground>
                                </ContentControl>
                            </Grid>
                            <Border
                                x:Name="DisabledVisualTopSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed"
                                CornerRadius="3" />
                        </Grid>
                        <Grid
                            x:Name="TemplateTopUnselected"
                            Margin="0,2,0,1"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="TopUnselected_Background"
                                    BorderThickness="3,3,3,0"
                                    Background="{StaticResource BtnOverFill}"
                                    CornerRadius="3"
                                    Padding="3"
                                    Margin="0,0,0,-4">
                                    <Border.BorderBrush>
                                        <SolidColorBrush
                                            Color="{StaticResource Arrow}" />
                                    </Border.BorderBrush>
                                </Border>
                                <Border
                                    x:Name="TopUnselectedOver"
                                    Background="{StaticResource BtnOverFill}"
                                    BorderBrush="{StaticResource TabOverStroke}"
                                    BorderThickness="3,3,3,0"
                                    Opacity="0"
                                    CornerRadius="3"
                                    Padding="3"
                                    Margin="0,0,0,-3" />
                                <Border
                                    x:Name="TopUnselected_Highlight"
                                    Margin="1,1,1,-4"
                                    BorderBrush="#FFFFFFFF"
                                    BorderThickness="3,3,3,0"
                                    CornerRadius="3"
                                    Padding="3" />
                                <ContentControl
                                    x:Name="HeaderTopUnselected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False">
                                    <ContentControl.Foreground>
                                        <SolidColorBrush
                                            Color="{StaticResource Arrow}" />
                                    </ContentControl.Foreground>
                                </ContentControl>
                            </Grid>
                            <Border
                                x:Name="DisabledVisualTopUnSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed"
                                CornerRadius="3" />
                        </Grid>
                        <Grid
                            x:Name="TemplateBottomSelected"
                            Margin="-2,0,-2,0"
                            Canvas.ZIndex="1"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="BackgroundBottom"
                                    Background="#FFFFFFFF"
                                    BorderBrush="#FF979AA2"
                                    BorderThickness="1,0,1,1" />
                                <ContentControl
                                    x:Name="HeaderBottomSelected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Foreground="{TemplateBinding Foreground}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False" />
                            </Grid>
                            <Border
                                x:Name="DisabledVisualBottomSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed" />
                        </Grid>
                        <Grid
                            x:Name="TemplateBottomUnselected"
                            Margin="0,1,0,2"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="BottomUnselected_Background"
                                    BorderBrush="#FF94979F"
                                    BorderThickness="1,0,1,1">
                                    <Border.Background>
                                        <LinearGradientBrush
                                            EndPoint="0.5,0"
                                            StartPoint="0.5,1">
                                            <GradientStop
                                                Color="#FFFFFFFF"
                                                Offset="0" />
                                            <GradientStop
                                                Color="#FFF3F3F3"
                                                Offset="0.152" />
                                            <GradientStop
                                                Color="#FFF3F3F3"
                                                Offset="0.456" />
                                            <GradientStop
                                                Color="#FFEBEBEB"
                                                Offset="0.465" />
                                            <GradientStop
                                                Color="#FFD6D6D5"
                                                Offset="1" />
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Border
                                    x:Name="BottomUnselectedOver"
                                    Background="{StaticResource BtnOverFill}"
                                    BorderBrush="{StaticResource TabOverStroke}"
                                    BorderThickness="1,1,1,0"
                                    Opacity="0"
                                    RenderTransformOrigin="0.5,0.5">
                                    <Border.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform
                                                ScaleY="-1" />
                                            <SkewTransform />
                                            <RotateTransform />
                                            <TranslateTransform />
                                        </TransformGroup>
                                    </Border.RenderTransform>
                                </Border>
                                <Border
                                    x:Name="BottomUnselected_Highlight"
                                    Margin="1"
                                    BorderBrush="#FFFFFFFF"
                                    BorderThickness="1,0,1,1" />
                                <ContentControl
                                    x:Name="HeaderBottomUnselected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Foreground="{TemplateBinding Foreground}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False" />
                            </Grid>
                            <Border
                                x:Name="DisabledVisualBottomUnSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed" />
                        </Grid>
                        <Grid
                            x:Name="TemplateLeftSelected"
                            Margin="0,-2,0,-2"
                            Canvas.ZIndex="1"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="BackgroundLeft"
                                    Background="#FFFFFFFF"
                                    BorderBrush="#FF979AA2"
                                    BorderThickness="1,1,0,1" />
                                <ContentControl
                                    x:Name="HeaderLeftSelected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Foreground="{TemplateBinding Foreground}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False" />
                            </Grid>
                            <Border
                                x:Name="DisabledVisualLeftSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed" />
                        </Grid>
                        <Grid
                            x:Name="TemplateLeftUnselected"
                            Margin="2,0,1,0"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="LeftUnselected_Background"
                                    BorderBrush="#FF94979F"
                                    BorderThickness="1,1,0,1">
                                    <Border.Background>
                                        <LinearGradientBrush
                                            EndPoint="1,0.5"
                                            StartPoint="0,0.5">
                                            <GradientStop
                                                Color="#FFF3F3F3"
                                                Offset="0" />
                                            <GradientStop
                                                Color="#FFF3F3F3"
                                                Offset="0.438" />
                                            <GradientStop
                                                Color="#FFEBEBEB"
                                                Offset="0.585" />
                                            <GradientStop
                                                Color="#FFD6D6D5"
                                                Offset="1" />
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Border
                                    x:Name="LeftUnselectedOver"
                                    Background="{StaticResource VTabOverGradient}"
                                    BorderBrush="{StaticResource TabOverStroke}"
                                    BorderThickness="1,1,0,1"
                                    Opacity="0"
                                    RenderTransformOrigin="0.5,0.5" />
                                <ContentControl
                                    x:Name="HeaderLeftUnselected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Foreground="{TemplateBinding Foreground}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False" />
                                <Border
                                    x:Name="LeftUnselectedOver_Highlight"
                                    Margin="1"
                                    BorderBrush="#FFFFFFFF"
                                    BorderThickness="1,1,0,1" />
                            </Grid>
                            <Border
                                x:Name="DisabledVisualLeftUnSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed" />
                        </Grid>
                        <Grid
                            x:Name="TemplateRightSelected"
                            Margin="0,-2,0,-2"
                            Canvas.ZIndex="1"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="BackgroundRight"
                                    Background="#FFFFFFFF"
                                    BorderBrush="#FF979AA2"
                                    BorderThickness="0,1,1,1" />
                                <ContentControl
                                    x:Name="HeaderRightSelected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Foreground="{TemplateBinding Foreground}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False" />
                            </Grid>
                            <Border
                                x:Name="DisabledVisualRightSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed" />
                        </Grid>
                        <Grid
                            x:Name="TemplateRightUnselected"
                            Margin="1,0,2,0"
                            Visibility="Collapsed">
                            <Grid>
                                <Border
                                    x:Name="RightUnselected_Background"
                                    BorderBrush="#FF94979F"
                                    BorderThickness="0,1,1,1">
                                    <Border.Background>
                                        <LinearGradientBrush
                                            EndPoint="0,0.5"
                                            StartPoint="1,0.5">
                                            <GradientStop
                                                Color="#FFF3F3F3"
                                                Offset="0" />
                                            <GradientStop
                                                Color="#FFF3F3F3"
                                                Offset="0.438" />
                                            <GradientStop
                                                Color="#FFEBEBEB"
                                                Offset="0.585" />
                                            <GradientStop
                                                Color="#FFD6D6D5"
                                                Offset="1" />
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Border
                                    x:Name="RightUnselectedOver"
                                    Background="{StaticResource VTabOverGradient}"
                                    BorderBrush="{StaticResource TabOverStroke}"
                                    BorderThickness="1,1,0,1"
                                    Opacity="0"
                                    RenderTransformOrigin="0.5,0.5">
                                    <Border.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform
                                                ScaleX="-1" />
                                            <SkewTransform />
                                            <RotateTransform />
                                            <TranslateTransform />
                                        </TransformGroup>
                                    </Border.RenderTransform>
                                </Border>
                                <ContentControl
                                    x:Name="HeaderRightUnselected"
                                    Margin="{TemplateBinding Padding}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Foreground="{TemplateBinding Foreground}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    IsTabStop="False" />
                                <Border
                                    x:Name="RightUnselected_Highlight"
                                    Margin="1"
                                    BorderBrush="#FFFFFFFF"
                                    BorderThickness="0,1,1,1" />
                            </Grid>
                            <Border
                                x:Name="DisabledVisualRightUnSelected"
                                Background="#8CFFFFFF"
                                IsHitTestVisible="false"
                                Visibility="Collapsed" />
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TabControl-->
    <Style
        TargetType="sdk:TabControl">
        <Setter
            Property="Background"
            Value="#FFFFFFFF" />
        <Setter
            Property="BorderThickness"
            Value="1" />
        <Setter
            Property="Padding"
            Value="5" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="Stretch" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Stretch" />
        <Setter
            Property="IsTabStop"
            Value="False" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="sdk:TabControl">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition
                                        GeneratedDuration="0" />
                                </VisualStateGroup.Transitions>
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualTop"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualBottom"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualLeft"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualRight"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid
                            x:Name="TemplateTop"
                            Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition
                                    Height="Auto" />
                                <RowDefinition
                                    Height="*" />
                            </Grid.RowDefinitions>
                            <controlsPrimitives:TabPanel
                                x:Name="TabPanelTop"
                                Margin="2,0,2,-3"
                                Canvas.ZIndex="1" />
                            <Border
                                Grid.Row="1"
                                MinHeight="10"
                                MinWidth="10"
                                Background="#FFFFFFFF"
                                CornerRadius="5"
                                BorderThickness="3">
                                <Border.BorderBrush>
                                    <SolidColorBrush
                                        Color="{StaticResource Arrow}" />
                                </Border.BorderBrush>
                                <ContentPresenter
                                    x:Name="ContentTop"
                                    Margin="{TemplateBinding Padding}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalAlignment}" />
                            </Border>
                            <Border
                                x:Name="DisabledVisualTop"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Background="#8CFFFFFF"
                                CornerRadius="1"
                                Canvas.ZIndex="1"
                                IsHitTestVisible="False"
                                Opacity="0" />
                        </Grid>
                        <Grid
                            x:Name="TemplateBottom"
                            Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition
                                    Height="*" />
                                <RowDefinition
                                    Height="Auto" />
                            </Grid.RowDefinitions>
                            <controlsPrimitives:TabPanel
                                x:Name="TabPanelBottom"
                                Margin="2,-1,2,0"
                                Grid.Row="1"
                                Canvas.ZIndex="1" />
                            <Border
                                MinHeight="10"
                                MinWidth="10"
                                Background="#FFFFFFFF"
                                BorderBrush="#FF979AA2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="1">
                                <ContentPresenter
                                    x:Name="ContentBottom"
                                    Margin="{TemplateBinding Padding}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalAlignment}" />
                            </Border>
                            <Border
                                x:Name="DisabledVisualBottom"
                                Background="#8CFFFFFF"
                                CornerRadius="1"
                                Canvas.ZIndex="1"
                                IsHitTestVisible="False"
                                Opacity="0" />
                        </Grid>
                        <Grid
                            x:Name="TemplateLeft"
                            Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition
                                    Width="Auto" />
                                <ColumnDefinition
                                    Width="*" />
                            </Grid.ColumnDefinitions>
                            <controlsPrimitives:TabPanel
                                x:Name="TabPanelLeft"
                                Margin="0,2,-1,2"
                                Canvas.ZIndex="1" />
                            <Border
                                MinHeight="10"
                                MinWidth="10"
                                Grid.Column="1"
                                Background="#FFFFFFFF"
                                BorderBrush="#FF979AA2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="1">
                                <ContentPresenter
                                    x:Name="ContentLeft"
                                    Margin="{TemplateBinding Padding}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalAlignment}" />
                            </Border>
                            <Border
                                x:Name="DisabledVisualLeft"
                                Grid.Column="1"
                                Background="#8CFFFFFF"
                                CornerRadius="1"
                                Canvas.ZIndex="1"
                                IsHitTestVisible="False"
                                Opacity="0" />
                        </Grid>
                        <Grid
                            x:Name="TemplateRight"
                            Visibility="Collapsed">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition
                                    Width="*" />
                                <ColumnDefinition
                                    Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <controlsPrimitives:TabPanel
                                x:Name="TabPanelRight"
                                Margin="-1,2,0,2"
                                Grid.Column="1"
                                Canvas.ZIndex="1" />
                            <Border
                                MinHeight="10"
                                MinWidth="10"
                                Background="#FFFFFFFF"
                                BorderBrush="#FF979AA2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="1">
                                <ContentPresenter
                                    x:Name="ContentRight"
                                    Margin="{TemplateBinding Padding}"
                                    Cursor="{TemplateBinding Cursor}"
                                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalAlignment}" />
                            </Border>
                            <Border
                                x:Name="DisabledVisualRight"
                                Background="#8CFFFFFF"
                                CornerRadius="1"
                                Canvas.ZIndex="1"
                                IsHitTestVisible="False"
                                Opacity="0" />
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--ExpanderStyle1-->
    <Style
        x:Key="ExpanderStyle1"
        TargetType="toolkit:Expander">
        <Setter
            Property="Background"
            Value="Transparent" />
        <Setter
            Property="Foreground"
            Value="{StaticResource ButtonFontColor}" />
        <Setter
            Property="FontWeight"
            Value="Bold" />
        <Setter
            Property="Padding"
            Value="4" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="Stretch" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Stretch" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="toolkit:Expander">
                    <Grid>
                        <Grid.Resources>
                            <ControlTemplate
                                x:Key="ExpanderDownHeaderTemplate"
                                TargetType="ToggleButton">
                                <Grid>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup
                                            x:Name="CheckStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Checked">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="arrowDown"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="-1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="-1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unchecked" />
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="0" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="MouseOver" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Normal" />
                                            <VisualState
                                                x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver2"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver3"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress2"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress3"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="FocusStates">
                                            <VisualState
                                                x:Name="Focused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames
                                                        Duration="0"
                                                        Storyboard.TargetName="FocusBackground"
                                                        Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame
                                                            KeyTime="0"
                                                            Value="Visible" />
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unfocused" />
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle
                                        x:Name="HoverBackground"
                                        Fill="{StaticResource hoverGradient}"
                                        Stroke="{StaticResource hoverStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        Opacity="0"
                                        RenderTransformOrigin="0.5,0.5">
                                        <Rectangle.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform />
                                                <SkewTransform />
                                                <RotateTransform />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Rectangle.RenderTransform>
                                    </Rectangle>
                                    <Grid
                                        Margin="{TemplateBinding Padding}">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition
                                                Width="18" />
                                            <ColumnDefinition
                                                Width="*" />
                                        </Grid.ColumnDefinitions>
                                        <Grid
                                            Height="18"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Top">
                                            <Ellipse
                                                x:Name="circleOver1"
                                                Height="18"
                                                Width="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill1}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circleOver2"
                                                Height="18"
                                                Width="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill2}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circleOver3"
                                                Height="18"
                                                Width="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress1"
                                                Height="18"
                                                Width="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill1}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress2"
                                                Height="18"
                                                Width="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill2}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress3"
                                                Height="18"
                                                Width="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0" />
                                            <Path
                                                x:Name="arrowDown"
                                                StrokeThickness="2"
                                                Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                RenderTransformOrigin="0.5,0.5">
                                                <Path.Stroke>
                                                    <SolidColorBrush
                                                        Color="{StaticResource Arrow}" />
                                                </Path.Stroke>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform />
                                                        <SkewTransform />
                                                        <RotateTransform />
                                                        <TranslateTransform />
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                        <ContentPresenter
                                            x:Name="header"
                                            Margin="4,0,0,0"
                                            Grid.Column="1"
                                            Content="{TemplateBinding Content}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Center"
                                            IsHitTestVisible="false" />
                                    </Grid>
                                    <Rectangle
                                        x:Name="FocusBackground"
                                        Stroke="{StaticResource selectedStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        IsHitTestVisible="false"
                                        Visibility="Collapsed"
                                        Opacity="0.84" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate
                                x:Key="ExpanderUpHeaderTemplate"
                                TargetType="ToggleButton">
                                <Grid>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup
                                            x:Name="CheckStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Checked">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="arrowUp"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="-1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unchecked" />
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="0" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="MouseOver" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Normal" />
                                            <VisualState
                                                x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver2"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver3"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress2"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress3"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="FocusStates">
                                            <VisualState
                                                x:Name="Focused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames
                                                        Duration="0"
                                                        Storyboard.TargetName="FocusBackground"
                                                        Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame
                                                            KeyTime="0"
                                                            Value="Visible" />
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unfocused" />
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle
                                        x:Name="HoverBackground"
                                        Fill="{StaticResource hoverGradient}"
                                        Stroke="{StaticResource hoverStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        Opacity="0"
                                        RenderTransformOrigin="0.5,0.5">
                                        <Rectangle.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform
                                                    ScaleY="-1" />
                                                <SkewTransform />
                                                <RotateTransform />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Rectangle.RenderTransform>
                                    </Rectangle>
                                    <Grid
                                        Margin="{TemplateBinding Padding}">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition
                                                Width="18" />
                                            <ColumnDefinition
                                                Width="*" />
                                        </Grid.ColumnDefinitions>
                                        <Grid
                                            Height="18"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Top">
                                            <Ellipse
                                                x:Name="circleOver1"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill1}"
                                                Stroke="#00000000"
                                                Opacity="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center" />
                                            <Ellipse
                                                x:Name="circleOver2"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill2}"
                                                Stroke="#00000000"
                                                Opacity="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center" />
                                            <Ellipse
                                                x:Name="circleOver3"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center" />
                                            <Ellipse
                                                x:Name="circlePress1"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill1}"
                                                Stroke="#00000000"
                                                Opacity="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center" />
                                            <Ellipse
                                                x:Name="circlePress2"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill2}"
                                                Stroke="#00000000"
                                                Opacity="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center" />
                                            <Ellipse
                                                x:Name="circlePress3"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center" />
                                            <Path
                                                x:Name="arrowUp"
                                                Stroke="{StaticResource ButtonFontColor}"
                                                StrokeThickness="2"
                                                Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                RenderTransformOrigin="0.5,0.5">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform
                                                            ScaleY="-1" />
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                        <ContentPresenter
                                            x:Name="header"
                                            Margin="4,0,0,0"
                                            Grid.Column="1"
                                            Content="{TemplateBinding Content}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Center"
                                            IsHitTestVisible="false" />
                                    </Grid>
                                    <Rectangle
                                        x:Name="FocusBackground"
                                        Stroke="{StaticResource selectedStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        IsHitTestVisible="false"
                                        Visibility="Collapsed" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate
                                x:Key="ExpanderLeftHeaderTemplate"
                                TargetType="ToggleButton">
                                <Grid>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup
                                            x:Name="CheckStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Checked">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="arrowLeft"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="-1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="arrowLeft"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="-90" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unchecked" />
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="0" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="MouseOver" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Normal" />
                                            <VisualState
                                                x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver2"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver3"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress2"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress3"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                    <DoubleAnimation
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="Opacity"
                                                        To="1" />
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="FocusStates">
                                            <VisualState
                                                x:Name="Focused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames
                                                        Duration="0"
                                                        Storyboard.TargetName="FocusBackground"
                                                        Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame
                                                            KeyTime="0"
                                                            Value="Visible" />
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unfocused" />
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle
                                        x:Name="HoverBackground"
                                        Fill="{StaticResource hoverGradientVertical}"
                                        Stroke="{StaticResource hoverStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        Opacity="0"
                                        RenderTransformOrigin="0.5,0.5">
                                        <Rectangle.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform
                                                    ScaleX="-1" />
                                                <SkewTransform />
                                                <RotateTransform />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Rectangle.RenderTransform>
                                    </Rectangle>
                                    <Grid
                                        Margin="{TemplateBinding Padding}">
                                        <Grid.RowDefinitions>
                                            <RowDefinition
                                                Height="18" />
                                            <RowDefinition
                                                Height="*" />
                                        </Grid.RowDefinitions>
                                        <Grid
                                            Width="18"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Top">
                                            <Ellipse
                                                x:Name="circleOver1"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill1}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circleOver2"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill2}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circleOver3"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress1"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill1}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress2"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill2}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress3"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0" />
                                            <Path
                                                x:Name="arrowLeft"
                                                Stroke="{StaticResource ButtonFontColor}"
                                                StrokeThickness="2"
                                                Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                RenderTransformOrigin="0.5,0.5">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform />
                                                        <SkewTransform />
                                                        <RotateTransform
                                                            Angle="90" />
                                                        <TranslateTransform />
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                        <ContentPresenter
                                            x:Name="header"
                                            Margin="0,4,0,0"
                                            Grid.Row="1"
                                            Content="{TemplateBinding Content}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Top"
                                            IsHitTestVisible="false" />
                                    </Grid>
                                    <Rectangle
                                        x:Name="FocusBackground"
                                        Stroke="{StaticResource selectedStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        IsHitTestVisible="false"
                                        Visibility="Collapsed" />
                                </Grid>
                            </ControlTemplate>
                            <ControlTemplate
                                x:Key="ExpanderRightHeaderTemplate"
                                TargetType="ToggleButton">
                                <Grid>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup
                                            x:Name="CheckStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Checked">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="arrowRight"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="90" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="-1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unchecked" />
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition
                                                    GeneratedDuration="0" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="MouseOver" />
                                                <VisualTransition
                                                    GeneratedDuration="00:00:00.1"
                                                    To="Pressed" />
                                            </VisualStateGroup.Transitions>
                                            <VisualState
                                                x:Name="Normal" />
                                            <VisualState
                                                x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver1"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver2"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circleOver3"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress1"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress2"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="circlePress3"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames
                                                        BeginTime="00:00:00"
                                                        Duration="00:00:00.0010000"
                                                        Storyboard.TargetName="HoverBackground"
                                                        Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame
                                                            KeyTime="00:00:00"
                                                            Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup
                                            x:Name="FocusStates">
                                            <VisualState
                                                x:Name="Focused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames
                                                        Duration="0"
                                                        Storyboard.TargetName="FocusBackground"
                                                        Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame
                                                            KeyTime="0"
                                                            Value="Visible" />
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState
                                                x:Name="Unfocused" />
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle
                                        x:Name="HoverBackground"
                                        Fill="{StaticResource hoverGradientVertical}"
                                        Stroke="{StaticResource hoverStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        Opacity="0"
                                        RenderTransformOrigin="0.5,0.5">
                                        <Rectangle.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform />
                                                <SkewTransform />
                                                <RotateTransform />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Rectangle.RenderTransform>
                                    </Rectangle>
                                    <Grid
                                        Margin="{TemplateBinding Padding}">
                                        <Grid.RowDefinitions>
                                            <RowDefinition
                                                Height="18" />
                                            <RowDefinition
                                                Height="*" />
                                        </Grid.RowDefinitions>
                                        <Grid
                                            Width="18"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Top">
                                            <Ellipse
                                                x:Name="circleOver1"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill1}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circleOver2"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill2}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circleOver3"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowHoverFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress1"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill1}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress2"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill2}"
                                                Stroke="#00000000"
                                                Opacity="0" />
                                            <Ellipse
                                                x:Name="circlePress3"
                                                Width="18"
                                                Height="18"
                                                Fill="{StaticResource ExpanderArrowPressedFill3}"
                                                Stroke="{StaticResource expanderArrowStroke}"
                                                Opacity="0" />
                                            <Path
                                                x:Name="arrowRight"
                                                Stroke="{StaticResource ButtonFontColor}"
                                                StrokeThickness="2"
                                                Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                RenderTransformOrigin="0.5,0.5">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform />
                                                        <SkewTransform />
                                                        <RotateTransform
                                                            Angle="-90" />
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                        <ContentPresenter
                                            x:Name="header"
                                            Margin="0,4,0,0"
                                            Grid.Row="1"
                                            Content="{TemplateBinding Content}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Top"
                                            IsHitTestVisible="false" />
                                    </Grid>
                                    <Rectangle
                                        x:Name="FocusBackground"
                                        Stroke="{StaticResource selectedStroke}"
                                        RadiusX="2"
                                        RadiusY="2"
                                        IsHitTestVisible="false"
                                        Visibility="Collapsed" />
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition
                                        GeneratedDuration="0" />
                                </VisualStateGroup.Transitions>
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisualElement"
                                            Storyboard.TargetProperty="(UIElement.Opacity)"
                                            To="1" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="FocusStates">
                                <VisualState
                                    x:Name="Focused">
                                    <Storyboard />
                                </VisualState>
                                <VisualState
                                    x:Name="Unfocused" />
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ExpansionStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition
                                        GeneratedDuration="0" />
                                </VisualStateGroup.Transitions>
                                <VisualState
                                    x:Name="Collapsed" />
                                <VisualState
                                    x:Name="Expanded">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpandSite"
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ExpandDirectionStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition
                                        GeneratedDuration="0" />
                                </VisualStateGroup.Transitions>
                                <VisualState
                                    x:Name="ExpandDown">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="rd1"
                                            Storyboard.TargetProperty="Height">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="cd0"
                                            Storyboard.TargetProperty="Width">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="ExpandUp">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpanderButton"
                                            Storyboard.TargetProperty="Template">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="{StaticResource ExpanderUpHeaderTemplate}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpanderButton"
                                            Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpandSite"
                                            Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="0" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="rd0"
                                            Storyboard.TargetProperty="Height">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="cd0"
                                            Storyboard.TargetProperty="Width">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="ExpandLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpanderButton"
                                            Storyboard.TargetProperty="Template">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="{StaticResource ExpanderLeftHeaderTemplate}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpanderButton"
                                            Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpandSite"
                                            Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="0" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="rd0"
                                            Storyboard.TargetProperty="Height">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="cd0"
                                            Storyboard.TargetProperty="Width">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="ExpandRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpanderButton"
                                            Storyboard.TargetProperty="Template">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="{StaticResource ExpanderRightHeaderTemplate}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ExpandSite"
                                            Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="0" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="1"
                                            Storyboard.TargetName="ExpandSite"
                                            Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="rd0"
                                            Storyboard.TargetProperty="Height">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="cd1"
                                            Storyboard.TargetProperty="Width">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="*" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition
                                    Width="Auto"
                                    x:Name="cd0" />
                                <ColumnDefinition
                                    Width="Auto"
                                    x:Name="cd1" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition
                                    Height="Auto"
                                    x:Name="rd0" />
                                <RowDefinition
                                    Height="Auto"
                                    x:Name="rd1" />
                            </Grid.RowDefinitions>
                            <ToggleButton
                                x:Name="ExpanderButton"
                                Grid.Column="0"
                                Grid.Row="0"
                                MinHeight="0"
                                MinWidth="0"
                                Content="{TemplateBinding Header}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                FontFamily="{TemplateBinding FontFamily}"
                                FontSize="{TemplateBinding FontSize}"
                                FontStretch="{TemplateBinding FontStretch}"
                                FontStyle="{TemplateBinding FontStyle}"
                                FontWeight="{TemplateBinding FontWeight}"
                                Padding="{TemplateBinding Padding}"
                                Template="{StaticResource ExpanderDownHeaderTemplate}"
                                HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                IsChecked="{TemplateBinding IsExpanded}">
                                <ToggleButton.Foreground>
                                    <SolidColorBrush
                                        Color="{StaticResource Arrow}" />
                                </ToggleButton.Foreground>
                            </ToggleButton>
                            <Border
                                x:Name="ExpandSite"
                                Grid.Column="0"
                                Grid.Row="1"
                                Background="#FFFFFFFF"
                                BorderThickness="1"
                                CornerRadius="2"
                                Padding="0"
                                Visibility="Collapsed">
                                <ContentControl
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    FontFamily="{TemplateBinding FontFamily}"
                                    FontSize="{TemplateBinding FontSize}"
                                    FontStretch="{TemplateBinding FontStretch}"
                                    FontStyle="{TemplateBinding FontStyle}"
                                    FontWeight="{TemplateBinding FontWeight}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}">
                                    <ContentControl.Foreground>
                                        <SolidColorBrush
                                            Color="{StaticResource Arrow}" />
                                    </ContentControl.Foreground>
                                </ContentControl>
                            </Border>
                        </Grid>
                        <Border
                            x:Name="DisabledVisualElement"
                            IsHitTestVisible="false"
                            Background="#A5FFFFFF"
                            Opacity="0" />
                        <Border
                            x:Name="FocusVisualElement"
                            IsHitTestVisible="false"
                            BorderBrush="#00FFFFFF"
                            BorderThickness="1"
                            Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ListBoxStyleNoPadding-->
    <Style
        x:Key="ListBoxItemStyleNoPadding"
        TargetType="ListBoxItem">
        <Setter
            Property="Padding"
            Value="3" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="Center" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Top" />
        <Setter
            Property="Background"
            Value="Transparent" />
        <Setter
            Property="BorderThickness"
            Value="1" />
        <Setter
            Property="TabNavigation"
            Value="Local" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ListBoxItem">
                    <Grid
                        Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".35"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="fillColor" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".55"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="contentPresenter" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="SelectionStates">
                                <VisualState
                                    x:Name="Unselected" />
                                <VisualState
                                    x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".75"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="fillColor2" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="FocusStates">
                                <VisualState
                                    x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetProperty="Visibility"
                                            Storyboard.TargetName="FocusVisualElement">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle
                            x:Name="fillColor"
                            IsHitTestVisible="False"
                            Opacity="0"
                            RadiusY="1"
                            RadiusX="1" />
                        <Rectangle
                            x:Name="fillColor2"
                            IsHitTestVisible="False"
                            Opacity="0"
                            RadiusY="1"
                            RadiusX="1" />
                        <ContentPresenter
                            x:Name="contentPresenter"
                            ContentTemplate="{TemplateBinding ContentTemplate}"
                            Content="{TemplateBinding Content}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                        <Rectangle
                            x:Name="FocusVisualElement"
                            RadiusY="1"
                            RadiusX="1"
                            StrokeThickness="1"
                            Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--HorizontalThumbTemplate-->
    <ControlTemplate
        x:Key="HorizontalThumbTemplate"
        TargetType="Thumb">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup
                    x:Name="CommonStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition
                            To="MouseOver"
                            GeneratedDuration="0:0:0.1" />
                        <VisualTransition
                            To="Pressed"
                            GeneratedDuration="0:0:0.1" />
                    </VisualStateGroup.Transitions>
                    <VisualState
                        x:Name="Normal" />
                    <VisualState
                        x:Name="MouseOver">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BackgroundOver"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderOver"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderOver1"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderOver2"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                        </Storyboard>
                    </VisualState>
                    <VisualState
                        x:Name="Pressed">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BackgroundPressed"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderPress"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderPress1"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderPress2"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                        </Storyboard>
                    </VisualState>
                    <VisualState
                        x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="ThumbVisual"
                                Storyboard.TargetProperty="Opacity"
                                To="0" />
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid
                x:Name="ThumbVisual"
                Grid.RowSpan="2">
                <Rectangle
                    x:Name="Background"
                    Fill="{StaticResource HScrollbarBkgNormFill}"
                    Stroke="{StaticResource ScrollbarBkgNormStroke}"
                    RadiusX="1.5"
                    RadiusY="1.5" />
                <Rectangle
                    x:Name="BackgroundOver"
                    Fill="{StaticResource HScrollbarBkgOverFill}"
                    Stroke="{StaticResource TextBoxPressBrush}"
                    RadiusX="1.5"
                    RadiusY="1.5"
                    Opacity="0" />
                <Rectangle
                    x:Name="BackgroundPressed"
                    Fill="{StaticResource HScrollbarBkgPressFill}"
                    Stroke="{StaticResource btnPressStroke2}"
                    RadiusX="1.5"
                    RadiusY="1.5"
                    Opacity="0" />
                <Rectangle
                    x:Name="BorderHighlight"
                    Width="10"
                    Height="11"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
                    <Rectangle.Stroke>
                        <LinearGradientBrush
                            EndPoint="0.5,1"
                            StartPoint="0.5,0">
                            <GradientStop
                                Color="#00FFFFFF"
                                Offset="0" />
                            <GradientStop
                                Color="#59FFFFFF"
                                Offset="1" />
                        </LinearGradientBrush>
                    </Rectangle.Stroke>
                </Rectangle>
                <Border
                    Margin="0,0,6,0"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetNormFill}"
                    BorderBrush="{StaticResource HThumbDivetNormStroke}"
                    BorderThickness="1,1,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center" />
                <Border
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetNormFill}"
                    BorderBrush="{StaticResource HThumbDivetNormStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center" />
                <Border
                    Margin="0,0,-6,0"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetNormFill}"
                    BorderBrush="{StaticResource HThumbDivetNormStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center" />
                <Border
                    x:Name="BorderOver"
                    Margin="0,0,6,0"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetOverFill}"
                    BorderBrush="{StaticResource HThumbDivetOverStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderOver1"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetOverFill}"
                    BorderBrush="{StaticResource HThumbDivetOverStroke}"
                    BorderThickness="1,1,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderOver2"
                    Margin="0,0,-6,0"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetOverFill}"
                    BorderBrush="{StaticResource HThumbDivetOverStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderPress"
                    Margin="0,0,6,0"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetPressFill}"
                    BorderBrush="{StaticResource HThumbDivetPressStroke}"
                    BorderThickness="1,1,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderPress1"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetPressFill}"
                    BorderBrush="{StaticResource HThumbDivetPressStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderPress2"
                    Margin="0,0,-6,0"
                    Width="2"
                    Height="9"
                    Background="{StaticResource HThumbDivetPressFill}"
                    BorderBrush="{StaticResource HThumbDivetPressStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Rectangle
                    x:Name="Highlight"
                    Margin="1"
                    Stroke="#FFFFFFFF"
                    RadiusX="0.5"
                    RadiusY="0.5"
                    Opacity="0.6"
                    IsHitTestVisible="false" />
            </Grid>
        </Grid>
    </ControlTemplate>

    <!--VerticalThumbTemplate-->
    <ControlTemplate
        x:Key="VerticalThumbTemplate"
        TargetType="Thumb">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup
                    x:Name="CommonStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition
                            To="MouseOver"
                            GeneratedDuration="0:0:0.1" />
                        <VisualTransition
                            To="Pressed"
                            GeneratedDuration="0:0:0.1" />
                    </VisualStateGroup.Transitions>
                    <VisualState
                        x:Name="Normal" />
                    <VisualState
                        x:Name="MouseOver">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BackgroundOver"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderOver"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderOver1"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderOver2"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                        </Storyboard>
                    </VisualState>
                    <VisualState
                        x:Name="Pressed">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BackgroundPressed"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderPress"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderPress1"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="BorderPress2"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                        </Storyboard>
                    </VisualState>
                    <VisualState
                        x:Name="Disabled">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="ThumbVisual"
                                Storyboard.TargetProperty="Opacity"
                                To="0" />
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid
                x:Name="ThumbVisual">
                <Rectangle
                    x:Name="Background"
                    Fill="{StaticResource VScrollbarBkgNormFill}"
                    Stroke="{StaticResource ScrollbarBkgNormStroke}"
                    RadiusX="1.5"
                    RadiusY="1.5" />
                <Rectangle
                    x:Name="BackgroundOver"
                    Fill="{StaticResource VScrollbarBkgOverFill}"
                    Stroke="{StaticResource TextBoxPressBrush}"
                    RadiusX="1.5"
                    RadiusY="1.5"
                    Opacity="0" />
                <Rectangle
                    x:Name="BackgroundPressed"
                    Fill="{StaticResource VScrollbarBkgPressFill}"
                    Stroke="{StaticResource btnPressStroke2}"
                    RadiusX="1.5"
                    RadiusY="1.5"
                    Opacity="0" />
                <Rectangle
                    x:Name="BorderHighlight"
                    Width="11"
                    Height="10"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
                    <Rectangle.Stroke>
                        <LinearGradientBrush
                            EndPoint="1,0.5"
                            StartPoint="0,0.5">
                            <GradientStop
                                Color="#00FFFFFF"
                                Offset="0" />
                            <GradientStop
                                Color="#59FFFFFF"
                                Offset="1" />
                        </LinearGradientBrush>
                    </Rectangle.Stroke>
                </Rectangle>
                <Border
                    Margin="0,0,0,6"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetNormFill}"
                    BorderBrush="{StaticResource VThumbDivetNormStroke}"
                    BorderThickness="1,1,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center" />
                <Border
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetNormFill}"
                    BorderBrush="{StaticResource VThumbDivetNormStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center" />
                <Border
                    Margin="0,0,0,-6"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetNormFill}"
                    BorderBrush="{StaticResource VThumbDivetNormStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center" />
                <Border
                    x:Name="BorderOver"
                    Margin="0,0,0,6"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetOverFill}"
                    BorderBrush="{StaticResource VThumbDivetOverStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderOver1"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetOverFill}"
                    BorderBrush="{StaticResource VThumbDivetOverStroke}"
                    BorderThickness="1,1,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderOver2"
                    Margin="0,0,0,-6"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetOverFill}"
                    BorderBrush="{StaticResource VThumbDivetOverStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderPress"
                    Margin="0,0,0,6"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetPressFill}"
                    BorderBrush="{StaticResource VThumbDivetPressStroke}"
                    BorderThickness="1,1,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderPress1"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetPressFill}"
                    BorderBrush="{StaticResource VThumbDivetPressStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Border
                    x:Name="BorderPress2"
                    Margin="0,0,0,-6"
                    Width="9"
                    Height="2"
                    Background="{StaticResource VThumbDivetPressFill}"
                    BorderBrush="{StaticResource VThumbDivetPressStroke}"
                    BorderThickness="1,1,0,0"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Opacity="0" />
                <Rectangle
                    x:Name="Highlight"
                    Margin="1"
                    Stroke="#FFFFFFFF"
                    RadiusX="0.5"
                    RadiusY="0.5"
                    Opacity="0.6"
                    IsHitTestVisible="false" />
            </Grid>
        </Grid>
    </ControlTemplate>

    <!--DataGridColumnHeaderStyle1-->
    <Style
        x:Key="DataGridColumnHeaderStyle1"
        TargetType="sdk:DataGridColumnHeader">
        <Setter
            Property="Foreground"
            Value="#FF000000" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="Left" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Center" />
        <Setter
            Property="IsTabStop"
            Value="False" />
        <Setter
            Property="SeparatorBrush"
            Value="#FFC9CACA" />
        <Setter
            Property="Padding"
            Value="4" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="sdk:DataGridColumnHeader">
                    <Grid
                        x:Name="Root">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition
                                Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            To="#FF448DCA"
                                            Storyboard.TargetProperty="(Fill).Color"
                                            Storyboard.TargetName="BackgroundRectangle" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            To="#FF448DCA"
                                            Storyboard.TargetProperty="(Fill).Color"
                                            Storyboard.TargetName="BackgroundRectangle" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="SortStates">
                                <VisualState
                                    x:Name="Unsorted" />
                                <VisualState
                                    x:Name="SortAscending">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To="1.0"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="SortIcon" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="SortDescending">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To="1.0"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="SortIcon" />
                                        <DoubleAnimation
                                            Duration="0"
                                            To="-.9"
                                            Storyboard.TargetProperty="(RenderTransform).ScaleY"
                                            Storyboard.TargetName="SortIcon" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle
                            x:Name="BackgroundRectangle"
                            Grid.ColumnSpan="2"
                            Fill="#FF1F3B53"
                            Stretch="Fill" />
                        <Rectangle
                            x:Name="BackgroundGradient"
                            Grid.ColumnSpan="2"
                            Stretch="Fill"
                            Fill="{StaticResource BtnOverFill}" />
                        <Grid
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            Margin="{TemplateBinding Padding}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition
                                    Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <ContentPresenter
                                Content="{TemplateBinding Content}" />
                            <Path
                                x:Name="SortIcon"
                                Grid.Column="1"
                                Data="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z "
                                Fill="#FF444444"
                                HorizontalAlignment="Left"
                                Margin="4,0,0,0"
                                Opacity="0"
                                RenderTransformOrigin=".5,.5"
                                Stretch="Uniform"
                                VerticalAlignment="Center"
                                Width="8">
                                <Path.RenderTransform>
                                    <ScaleTransform
                                        ScaleY=".9"
                                        ScaleX=".9" />
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Rectangle
                            x:Name="VerticalSeparator"
                            Grid.Column="1"
                            Fill="{TemplateBinding SeparatorBrush}"
                            Visibility="{TemplateBinding SeparatorVisibility}"
                            VerticalAlignment="Stretch"
                            Width="1" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DataForm-->
    <Style
        x:Key="DataFormStyle1"
        TargetType="toolkit:DataForm">
        <Setter
            Property="AutoCommit"
            Value="True" />
        <Setter
            Property="AutoGenerateFields"
            Value="True" />
        <Setter
            Property="Background">
            <Setter.Value>
                <LinearGradientBrush
                    EndPoint="0.5,1"
                    StartPoint="0.5,0">
                    <GradientStop
                        Color="#FFF3F7FA"
                        Offset="0" />
                    <GradientStop
                        Color="#FFFFFFFF"
                        Offset="0.1" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter
            Property="BorderThickness"
            Value="1" />
        <Setter
            Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush
                    EndPoint="0,1"
                    StartPoint="0,0">
                    <GradientStop
                        Color="#FFA3AEB9"
                        Offset="0" />
                    <GradientStop
                        Color="#FF8399A9"
                        Offset="0.375" />
                    <GradientStop
                        Color="#FF718597"
                        Offset="0.375" />
                    <GradientStop
                        Color="#FF617584"
                        Offset="1" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter
            Property="DescriptionViewerPosition"
            Value="Auto" />
        <Setter
            Property="LabelPosition"
            Value="Auto" />
        <Setter
            Property="HeaderVisibility"
            Value="Visible" />
        <Setter
            Property="Padding"
            Value="5" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="toolkit:DataForm">
                    <Grid
                        toolkit:DataField.IsFieldGroup="True">
                        <Grid.Resources>
                            <Style
                                x:Key="ButtonGeneric"
                                TargetType="Button">
                                <Setter
                                    Property="Background"
                                    Value="#00000000" />
                                <Setter
                                    Property="Foreground"
                                    Value="#FF000000" />
                                <Setter
                                    Property="BorderBrush"
                                    Value="#FFFFFFFF" />
                                <Setter
                                    Property="BorderThickness"
                                    Value="1" />
                                <Setter
                                    Property="Padding"
                                    Value="1" />
                                <Setter
                                    Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate
                                            TargetType="Button">
                                            <Grid>
                                                <VisualStateManager.VisualStateGroups>
                                                    <VisualStateGroup
                                                        x:Name="CommonStates">
                                                        <VisualState
                                                            x:Name="Normal" />
                                                        <VisualState
                                                            x:Name="MouseOver">
                                                            <Storyboard>
                                                                <ColorAnimation
                                                                    Duration="0"
                                                                    Storyboard.TargetName="OuterBtnBorder"
                                                                    Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"
                                                                    To="#FFFFFFFF" />
                                                                <ColorAnimation
                                                                    Duration="0"
                                                                    Storyboard.TargetName="InnerBtnBorder"
                                                                    Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"
                                                                    To="#7FA9A9A9" />
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState
                                                            x:Name="Pressed">
                                                            <Storyboard>
                                                                <ColorAnimation
                                                                    Duration="0"
                                                                    Storyboard.TargetName="InnerBtnBorder"
                                                                    Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)"
                                                                    To="#7FA9A9A9" />
                                                                <ColorAnimation
                                                                    Duration="0"
                                                                    Storyboard.TargetName="InnerBtnBorder"
                                                                    Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
                                                                    To="#7FA9A9A9" />
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState
                                                            x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimation
                                                                    Duration="0"
                                                                    Storyboard.TargetName="contentPresenter"
                                                                    Storyboard.TargetProperty="Opacity"
                                                                    To="0.3" />
                                                            </Storyboard>
                                                        </VisualState>
                                                    </VisualStateGroup>
                                                    <VisualStateGroup
                                                        x:Name="FocusStates">
                                                        <VisualState
                                                            x:Name="Focused">
                                                            <Storyboard>
                                                                <DoubleAnimation
                                                                    Duration="0"
                                                                    Storyboard.TargetName="FocusVisualElement"
                                                                    Storyboard.TargetProperty="Opacity"
                                                                    To="1" />
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState
                                                            x:Name="Unfocused" />
                                                    </VisualStateGroup>
                                                </VisualStateManager.VisualStateGroups>
                                                <Border
                                                    x:Name="OuterBtnBorder"
                                                    Background="{TemplateBinding Background}"
                                                    BorderBrush="#00FFFFFF"
                                                    BorderThickness="{TemplateBinding BorderThickness}"
                                                    CornerRadius="3">
                                                    <Border
                                                        x:Name="InnerBtnBorder"
                                                        Background="#00A9A9A9"
                                                        BorderBrush="#00A9A9A9"
                                                        BorderThickness="{TemplateBinding BorderThickness}"
                                                        CornerRadius="2">
                                                        <ContentPresenter
                                                            x:Name="contentPresenter"
                                                            Height="Auto"
                                                            HorizontalAlignment="Center"
                                                            VerticalAlignment="Center"
                                                            Width="Auto"
                                                            Content="{TemplateBinding Content}"
                                                            ContentTemplate="{TemplateBinding ContentTemplate}" />
                                                    </Border>
                                                </Border>
                                                <Border
                                                    x:Name="FocusVisualElement"
                                                    Margin="1"
                                                    Opacity="0"
                                                    Background="{TemplateBinding Background}"
                                                    BorderBrush="#FF6DBDD1"
                                                    BorderThickness="{TemplateBinding BorderThickness}"
                                                    CornerRadius="2" />
                                            </Grid>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                            <Style
                                x:Key="CustomScrollViewerStyle"
                                TargetType="ScrollViewer">
                                <Setter
                                    Property="HorizontalContentAlignment"
                                    Value="Left" />
                                <Setter
                                    Property="VerticalContentAlignment"
                                    Value="Top" />
                                <Setter
                                    Property="BorderThickness"
                                    Value="0,1" />
                                <Setter
                                    Property="BorderBrush">
                                    <Setter.Value>
                                        <LinearGradientBrush
                                            EndPoint="0.5,1"
                                            StartPoint="0.5,0">
                                            <GradientStop
                                                Color="#FFA3AEB9"
                                                Offset="0" />
                                            <GradientStop
                                                Color="#FF8399A9"
                                                Offset="0.375" />
                                            <GradientStop
                                                Color="#FF718597"
                                                Offset="0.375" />
                                            <GradientStop
                                                Color="#FF617584"
                                                Offset="1" />
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                                <Setter
                                    Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate
                                            TargetType="ScrollViewer">
                                            <Grid>
                                                <Border
                                                    Margin="0,-1"
                                                    Opacity="0.2"
                                                    Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                                                    BorderBrush="{TemplateBinding BorderBrush}"
                                                    BorderThickness="{TemplateBinding BorderThickness}">
                                                    <Border.OpacityMask>
                                                        <LinearGradientBrush
                                                            EndPoint="1.07,0.5"
                                                            StartPoint="-0.07,0.5">
                                                            <GradientStop
                                                                Color="#FF000000" />
                                                            <GradientStop
                                                                Color="#7FFFFFFF"
                                                                Offset="0.5" />
                                                            <GradientStop
                                                                Color="#FF000000"
                                                                Offset="1" />
                                                        </LinearGradientBrush>
                                                    </Border.OpacityMask>
                                                </Border>
                                                <Grid
                                                    Background="{TemplateBinding Background}">
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition
                                                            Width="*" />
                                                        <ColumnDefinition
                                                            Width="Auto" />
                                                    </Grid.ColumnDefinitions>
                                                    <Grid.RowDefinitions>
                                                        <RowDefinition
                                                            Height="*" />
                                                        <RowDefinition
                                                            Height="Auto" />
                                                    </Grid.RowDefinitions>
                                                    <ScrollContentPresenter
                                                        x:Name="ScrollContentPresenter"
                                                        Cursor="{TemplateBinding Cursor}"
                                                        Margin="{TemplateBinding Padding}"
                                                        ContentTemplate="{TemplateBinding ContentTemplate}" />
                                                    <Rectangle
                                                        Fill="#FFE9EEF4"
                                                        Grid.Column="1"
                                                        Grid.Row="1" />
                                                    <ScrollBar
                                                        x:Name="VerticalScrollBar"
                                                        Margin="0,-1"
                                                        Width="18"
                                                        Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                                                        IsTabStop="False"
                                                        Grid.Column="1"
                                                        Grid.Row="0"
                                                        Maximum="{TemplateBinding ScrollableHeight}"
                                                        Minimum="0"
                                                        Value="{TemplateBinding VerticalOffset}"
                                                        Orientation="Vertical"
                                                        ViewportSize="{TemplateBinding ViewportHeight}" />
                                                    <ScrollBar
                                                        x:Name="HorizontalScrollBar"
                                                        Height="18"
                                                        Margin="-1,0,-1,-1"
                                                        Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
                                                        IsTabStop="False"
                                                        Grid.Column="0"
                                                        Grid.Row="1"
                                                        Maximum="{TemplateBinding ScrollableWidth}"
                                                        Minimum="0"
                                                        Value="{TemplateBinding HorizontalOffset}"
                                                        Orientation="Horizontal"
                                                        ViewportSize="{TemplateBinding ViewportWidth}" />
                                                </Grid>
                                            </Grid>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>

                            <!--DataFormButton-->
                            <Style
                                x:Key="DataFormButtonStyle"
                                TargetType="Button">
                                <Setter
                                    Property="Background"
                                    Value="#FF1F3B53" />
                                <Setter
                                    Property="Foreground"
                                    Value="#FF000000" />
                                <Setter
                                    Property="Padding"
                                    Value="3" />
                                <Setter
                                    Property="BorderThickness"
                                    Value="1" />
                                <Setter
                                    Property="BorderBrush">
                                    <Setter.Value>
                                        <LinearGradientBrush
                                            EndPoint="0.5,1"
                                            StartPoint="0.5,0">
                                            <GradientStop
                                                Color="#FFA3AEB9"
                                                Offset="0" />
                                            <GradientStop
                                                Color="#FF8399A9"
                                                Offset="0.375" />
                                            <GradientStop
                                                Color="#FF718597"
                                                Offset="0.375" />
                                            <GradientStop
                                                Color="#FF617584"
                                                Offset="1" />
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                                <Setter
                                    Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate
                                            TargetType="Button">
                                            <Grid>
                                                <VisualStateManager.VisualStateGroups>
                                                    <VisualStateGroup
                                                        x:Name="CommonStates">
                                                        <VisualState
                                                            x:Name="Normal" />
                                                        <VisualState
                                                            x:Name="MouseOver">
                                                            <Storyboard>
                                                                <DoubleAnimationUsingKeyFrames
                                                                    BeginTime="00:00:00"
                                                                    Duration="00:00:00.0010000"
                                                                    Storyboard.TargetName="BackgroundOver"
                                                                    Storyboard.TargetProperty="(UIElement.Opacity)">
                                                                    <EasingDoubleKeyFrame
                                                                        KeyTime="00:00:00"
                                                                        Value="0.9" />
                                                                </DoubleAnimationUsingKeyFrames>
                                                                <DoubleAnimationUsingKeyFrames
                                                                    BeginTime="00:00:00"
                                                                    Duration="00:00:00.0010000"
                                                                    Storyboard.TargetName="BackgroundOver_Highlight"
                                                                    Storyboard.TargetProperty="(UIElement.Opacity)">
                                                                    <EasingDoubleKeyFrame
                                                                        KeyTime="00:00:00"
                                                                        Value="0.85" />
                                                                </DoubleAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState
                                                            x:Name="Pressed">
                                                            <Storyboard>
                                                                <ColorAnimationUsingKeyFrames
                                                                    Storyboard.TargetName="Background"
                                                                    Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                                                                    <SplineColorKeyFrame
                                                                        KeyTime="0"
                                                                        Value="#FF6DBDD1" />
                                                                </ColorAnimationUsingKeyFrames>
                                                                <DoubleAnimationUsingKeyFrames
                                                                    BeginTime="00:00:00"
                                                                    Duration="00:00:00.0010000"
                                                                    Storyboard.TargetName="BackgroundPressed"
                                                                    Storyboard.TargetProperty="(UIElement.Opacity)">
                                                                    <EasingDoubleKeyFrame
                                                                        KeyTime="00:00:00"
                                                                        Value="0.9" />
                                                                </DoubleAnimationUsingKeyFrames>
                                                                <DoubleAnimationUsingKeyFrames
                                                                    BeginTime="00:00:00"
                                                                    Duration="00:00:00.0010000"
                                                                    Storyboard.TargetName="BackgoundPressed_Highlight"
                                                                    Storyboard.TargetProperty="(UIElement.Opacity)">
                                                                    <EasingDoubleKeyFrame
                                                                        KeyTime="00:00:00"
                                                                        Value="0.85" />
                                                                </DoubleAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState
                                                            x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimationUsingKeyFrames
                                                                    Storyboard.TargetName="DisabledVisualElement"
                                                                    Storyboard.TargetProperty="Opacity">
                                                                    <SplineDoubleKeyFrame
                                                                        KeyTime="0"
                                                                        Value=".55" />
                                                                </DoubleAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                    </VisualStateGroup>
                                                    <VisualStateGroup
                                                        x:Name="FocusStates">
                                                        <VisualState
                                                            x:Name="Focused">
                                                            <Storyboard>
                                                                <DoubleAnimationUsingKeyFrames
                                                                    Storyboard.TargetName="FocusVisualElement"
                                                                    Storyboard.TargetProperty="Opacity">
                                                                    <SplineDoubleKeyFrame
                                                                        KeyTime="0"
                                                                        Value="1" />
                                                                </DoubleAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState
                                                            x:Name="Unfocused" />
                                                    </VisualStateGroup>
                                                </VisualStateManager.VisualStateGroups>
                                                <Border
                                                    x:Name="Background"
                                                    Background="White"
                                                    BorderThickness="{TemplateBinding BorderThickness}"
                                                    CornerRadius="3">
                                                    <Grid
                                                        Margin="1">
                                                        <Border
                                                            x:Name="BackgroundNorm"
                                                            Background="{StaticResource grayGradient}"
                                                            BorderThickness="1"
                                                            BorderBrush="#FF8E8F8F"
                                                            CornerRadius="3"
                                                            Margin="0" />
                                                        <Border
                                                            x:Name="BackgroundNorm_highlight"
                                                            Margin="0"
                                                            BorderBrush="#F2FFFFFF"
                                                            BorderThickness="1,0,1,1"
                                                            CornerRadius="3"
                                                            Opacity="0.65" />
                                                        <Border
                                                            x:Name="BackgroundOver"
                                                            Background="{StaticResource BtnOverFill}"
                                                            BorderBrush="{StaticResource TextBoxPressBrush}"
                                                            BorderThickness="1"
                                                            CornerRadius="3"
                                                            Opacity="0"
                                                            Margin="0" />
                                                        <Border
                                                            x:Name="BackgroundOver_Highlight"
                                                            Margin="0"
                                                            Background="{StaticResource btnOverFillHighlight}"
                                                            BorderBrush="{StaticResource hoverStroke}"
                                                            BorderThickness="1,0,1,1"
                                                            CornerRadius="3"
                                                            Opacity="0" />
                                                        <Border
                                                            x:Name="BackgroundPressed"
                                                            Background="{StaticResource BtnPressFill}"
                                                            BorderBrush="{StaticResource btnPressBorder}"
                                                            BorderThickness="1"
                                                            CornerRadius="3"
                                                            Opacity="0"
                                                            Margin="0" />
                                                        <Border
                                                            x:Name="BackgoundPressed_Highlight"
                                                            Background="{StaticResource btnPressFillHighlight}"
                                                            Margin="0"
                                                            CornerRadius="2.5"
                                                            Opacity="0" />
                                                        <Border
                                                            x:Name="Background_overlay"
                                                            Margin="0"
                                                            BorderThickness="1"
                                                            CornerRadius="3,3,0,0">
                                                            <Border.Background>
                                                                <LinearGradientBrush
                                                                    EndPoint="0.5,1"
                                                                    StartPoint="0.5,0">
                                                                    <GradientStop
                                                                        Color="#00FFFFFF"
                                                                        Offset="0" />
                                                                    <GradientStop
                                                                        Color="#72FFFFFF"
                                                                        Offset="0.157" />
                                                                    <GradientStop
                                                                        Color="#72FFFFFF"
                                                                        Offset="0.5" />
                                                                    <GradientStop
                                                                        Color="#00FFFFFF"
                                                                        Offset="0.51" />
                                                                </LinearGradientBrush>
                                                            </Border.Background>
                                                        </Border>
                                                    </Grid>
                                                </Border>
                                                <ContentPresenter
                                                    x:Name="contentPresenter"
                                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                    Margin="{TemplateBinding Padding}"
                                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                                    Content="{TemplateBinding Content}"
                                                    ContentTemplate="{TemplateBinding ContentTemplate}" />
                                                <Rectangle
                                                    x:Name="DisabledVisualElement"
                                                    Fill="#FFFFFFFF"
                                                    RadiusX="3"
                                                    RadiusY="3"
                                                    IsHitTestVisible="false"
                                                    Opacity="0" />
                                                <Rectangle
                                                    x:Name="FocusVisualElement"
                                                    Stroke="#FF6DBDD1"
                                                    StrokeThickness="1"
                                                    RadiusX="2"
                                                    RadiusY="2"
                                                    Margin="1"
                                                    IsHitTestVisible="false"
                                                    Opacity="0" />
                                            </Grid>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Grid.Resources>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="DisabledVisual"
                                            Storyboard.TargetProperty="Opacity"
                                            To="1" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ModeStates">
                                <VisualState
                                    x:Name="ReadOnly" />
                                <VisualState
                                    x:Name="Empty">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="ContentPresenter"
                                            Storyboard.TargetProperty="IsHitTestVisible">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="False" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="ContentPresenter"
                                            Storyboard.TargetProperty="Opacity"
                                            To="0" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Edit">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="EditButton"
                                            Storyboard.TargetProperty="IsEnabled">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="false" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="CommitButton"
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetName="CancelButton"
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ValidationStates">
                                <VisualState
                                    x:Name="Valid" />
                                <VisualState
                                    x:Name="Invalid" />
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="CommittedStates">
                                <VisualState
                                    x:Name="Committed" />
                                <VisualState
                                    x:Name="Uncommitted">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            Storyboard.TargetName="ChangeIndicator"
                                            Storyboard.TargetProperty="Opacity"
                                            To="0.9" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ScopeStates">
                                <VisualState
                                    x:Name="Entity" />
                                <VisualState
                                    x:Name="Collection" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border
                            x:Name="DataFormBorder"
                            Background="{TemplateBinding Background}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="2">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition
                                        Height="Auto" />
                                    <RowDefinition />
                                    <RowDefinition
                                        Height="Auto" />
                                    <RowDefinition
                                        Height="Auto" />
                                </Grid.RowDefinitions>
                                <Border
                                    x:Name="BackgroundNorm"
                                    BorderThickness="1"
                                    BorderBrush="#FF8E8F8F"
                                    CornerRadius="3"
                                    Margin="0"
                                    Grid.RowSpan="2" />
                                <Border
                                    x:Name="BackgroundNorm_highlight"
                                    Margin="1,0,0,0"
                                    BorderBrush="#F2FFFFFF"
                                    BorderThickness="1,0,1,1"
                                    CornerRadius="3"
                                    Opacity="0.65"
                                    Grid.RowSpan="2" />
                                <Border
                                    x:Name="BackgroundOver"
                                    Background="{StaticResource BtnOverFill}"
                                    BorderBrush="{StaticResource TextBoxPressBrush}"
                                    BorderThickness="1"
                                    CornerRadius="3"
                                    Opacity="0"
                                    Margin="0"
                                    Grid.RowSpan="2" />
                                <Border
                                    x:Name="BackgroundOver_Highlight"
                                    Margin="1,0,0,0"
                                    Background="{StaticResource btnOverFillHighlight}"
                                    BorderBrush="{StaticResource hoverStroke}"
                                    BorderThickness="1,0,1,1"
                                    CornerRadius="3"
                                    Opacity="0"
                                    Grid.RowSpan="2" />
                                <Border
                                    x:Name="BackgroundPressed"
                                    Background="{StaticResource BtnPressFill}"
                                    BorderBrush="{StaticResource btnPressBorder}"
                                    BorderThickness="1"
                                    CornerRadius="3"
                                    Opacity="0"
                                    Margin="0"
                                    Grid.RowSpan="2" />
                                <Border
                                    x:Name="BackgoundPressed_Highlight"
                                    Background="{StaticResource btnPressFillHighlight}"
                                    Margin="1,0,0,0"
                                    CornerRadius="2.5"
                                    Opacity="0"
                                    Grid.RowSpan="2" />
                                <Border
                                    x:Name="Background_overlay"
                                    Margin="1,1,-1,5"
                                    BorderThickness="1"
                                    CornerRadius="3,3,0,0"
                                    Grid.RowSpan="2" />
                                <Grid
                                    MinHeight="27"
                                    Visibility="{TemplateBinding HeaderVisibility}">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition
                                            Width="Auto" />
                                        <ColumnDefinition />
                                        <ColumnDefinition
                                            Width="Auto" />
                                        <ColumnDefinition
                                            Width="8" />
                                    </Grid.ColumnDefinitions>
                                    <StackPanel
                                        Orientation="Horizontal">
                                        <ContentControl
                                            x:Name="HeaderElement"
                                            Margin="10,0,0,0"
                                            VerticalAlignment="Center"
                                            FontWeight="Bold"
                                            Foreground="{TemplateBinding Foreground}"
                                            Content="{TemplateBinding Header}"
                                            ContentTemplate="{TemplateBinding HeaderTemplate}" />
                                        <TextBlock
                                            x:Name="ChangeIndicator"
                                            Margin="3,-2,8,2"
                                            VerticalAlignment="Center"
                                            Opacity="0"
                                            FontWeight="Bold"
                                            Foreground="{TemplateBinding Foreground}"
                                            Text="*" />
                                        <Button
                                            x:Name="CancelButton"
                                            Margin="0,5,8,-22"
                                            MinHeight="17"
                                            MinWidth="71"
                                            Visibility="Collapsed"
                                            HorizontalContentAlignment="Center"
                                            VerticalContentAlignment="Center"
                                            Content="Cancel"
                                            Style="{StaticResource DataFormButtonStyle}" />
                                    </StackPanel>
                                    <StackPanel
                                        Margin="0,3,0,2"
                                        Grid.Column="2"
                                        Orientation="Horizontal">
                                        <Button
                                            x:Name="FirstItemButton"
                                            Background="{x:Null}"
                                            BorderBrush="{x:Null}"
                                            Style="{StaticResource DataFormButtonStyle}">
                                            <Grid
                                                Height="9"
                                                Margin="6,5,5,5"
                                                Width="8"
                                                Opacity="1">
                                                <Grid.Effect>
                                                    <DropShadowEffect
                                                        BlurRadius="8"
                                                        Color="#FFFFFFFF"
                                                        Direction="100"
                                                        Opacity="1"
                                                        ShadowDepth="0" />
                                                </Grid.Effect>
                                                <Grid.OpacityMask>
                                                    <LinearGradientBrush
                                                        EndPoint="0.6,1"
                                                        StartPoint="0.4,0">
                                                        <GradientStop
                                                            Color="#7FFFFFFF"
                                                            Offset="0" />
                                                        <GradientStop
                                                            Color="#BF000000"
                                                            Offset="0.25" />
                                                        <GradientStop
                                                            Color="#FF000000"
                                                            Offset="1" />
                                                    </LinearGradientBrush>
                                                </Grid.OpacityMask>
                                                <Path
                                                    Fill="{TemplateBinding Foreground}"
                                                    Stretch="Fill"
                                                    Height="9"
                                                    HorizontalAlignment="Right"
                                                    Margin="0"
                                                    Width="5"
                                                    Opacity="0.85"
                                                    Data="M1,0 L1,2 L0,1 Z" />
                                                <Rectangle
                                                    Fill="{TemplateBinding Foreground}"
                                                    HorizontalAlignment="Left"
                                                    Width="2"
                                                    Opacity="0.85" />
                                            </Grid>
                                        </Button>
                                        <Button
                                            x:Name="PreviousItemButton"
                                            Style="{StaticResource DataFormButtonStyle}">
                                            <Path
                                                Fill="{TemplateBinding Foreground}"
                                                Stretch="Fill"
                                                Height="9"
                                                Margin="6,5,8,5"
                                                Width="5"
                                                Opacity="0.85"
                                                Data="M1,0 L1,2 L0,1 Z">
                                                <Path.Effect>
                                                    <DropShadowEffect
                                                        BlurRadius="8"
                                                        Color="#FFFFFFFF"
                                                        Direction="100"
                                                        ShadowDepth="0" />
                                                </Path.Effect>
                                                <Path.OpacityMask>
                                                    <LinearGradientBrush
                                                        EndPoint="0.6,1"
                                                        StartPoint="0.4,0">
                                                        <GradientStop
                                                            Color="#7F000000"
                                                            Offset="0" />
                                                        <GradientStop
                                                            Color="#BF000000"
                                                            Offset="0.25" />
                                                        <GradientStop
                                                            Color="#FF000000"
                                                            Offset="1" />
                                                    </LinearGradientBrush>
                                                </Path.OpacityMask>
                                            </Path>
                                        </Button>
                                        <Button
                                            x:Name="NextItemButton"
                                            Style="{StaticResource DataFormButtonStyle}">
                                            <Path
                                                Fill="{TemplateBinding Foreground}"
                                                Stretch="Fill"
                                                Height="9"
                                                Margin="8,5,6,5"
                                                Width="5"
                                                Opacity="0.85"
                                                Data="M0,0 L1,1 L0,2 Z">
                                                <Path.Effect>
                                                    <DropShadowEffect
                                                        BlurRadius="8"
                                                        Color="#FFFFFFFF"
                                                        Direction="100"
                                                        ShadowDepth="0" />
                                                </Path.Effect>
                                                <Path.OpacityMask>
                                                    <LinearGradientBrush
                                                        EndPoint="0.6,1"
                                                        StartPoint="0.4,0">
                                                        <GradientStop
                                                            Color="#7F000000"
                                                            Offset="0" />
                                                        <GradientStop
                                                            Color="#BF000000"
                                                            Offset="0.25" />
                                                        <GradientStop
                                                            Color="#FF000000"
                                                            Offset="1" />
                                                    </LinearGradientBrush>
                                                </Path.OpacityMask>
                                            </Path>
                                        </Button>
                                        <Button
                                            x:Name="LastItemButton"
                                            Style="{StaticResource DataFormButtonStyle}">
                                            <Grid
                                                Height="9"
                                                Margin="6,5,5,5"
                                                Width="8"
                                                Opacity="1">
                                                <Grid.Effect>
                                                    <DropShadowEffect
                                                        BlurRadius="8"
                                                        Color="#FFFFFFFF"
                                                        Direction="100"
                                                        ShadowDepth="0" />
                                                </Grid.Effect>
                                                <Grid.OpacityMask>
                                                    <LinearGradientBrush
                                                        EndPoint="0.6,1"
                                                        StartPoint="0.4,0">
                                                        <GradientStop
                                                            Color="#7F000000"
                                                            Offset="0" />
                                                        <GradientStop
                                                            Color="#BF000000"
                                                            Offset="0.25" />
                                                        <GradientStop
                                                            Color="#FF000000"
                                                            Offset="1" />
                                                    </LinearGradientBrush>
                                                </Grid.OpacityMask>
                                                <Path
                                                    Fill="{TemplateBinding Foreground}"
                                                    Stretch="Fill"
                                                    Height="9"
                                                    HorizontalAlignment="Left"
                                                    Width="5"
                                                    Opacity="0.85"
                                                    Data="M0,0 L1,1 L0,2 Z" />
                                                <Rectangle
                                                    Fill="{TemplateBinding Foreground}"
                                                    HorizontalAlignment="Right"
                                                    Width="2"
                                                    Opacity="0.85" />
                                            </Grid>
                                        </Button>
                                        <Border
                                            x:Name="ButtonSeparator"
                                            Margin="2,4,2,4"
                                            Width="3"
                                            Opacity="0.2"
                                            BorderBrush="#59FFFFFF"
                                            BorderThickness="1,0,1,0"
                                            Background="{StaticResource VThumbDivetOverStroke}" />
                                        <Button
                                            x:Name="EditButton"
                                            Style="{StaticResource DataFormButtonStyle}"
                                            ToolTipService.ToolTip="Edit">
                                            <Button.OpacityMask>
                                                <LinearGradientBrush
                                                    EndPoint="0.57,0.76"
                                                    StartPoint="0.42,0.01">
                                                    <GradientStop
                                                        Color="#7F000000"
                                                        Offset="0" />
                                                    <GradientStop
                                                        Color="#BF000000"
                                                        Offset="0.442" />
                                                    <GradientStop
                                                        Color="#FF000000"
                                                        Offset="1" />
                                                </LinearGradientBrush>
                                            </Button.OpacityMask>
                                            <Grid
                                                Height="19"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                Width="19">
                                                <Canvas
                                                    HorizontalAlignment="Stretch"
                                                    Margin="2,2,0,0"
                                                    VerticalAlignment="Stretch">
                                                    <Path
                                                        Fill="{TemplateBinding Foreground}"
                                                        Stretch="Fill"
                                                        Height="10.5"
                                                        Width="10.56"
                                                        Canvas.Left="2.53"
                                                        Canvas.Top="3.01"
                                                        Data="F1 M 2.53,9.96L 4.96,11.1L 6.08,13.50L 13.09,6.50L 9.6,3L 2.53,9.96 Z ">
                                                        <Path.OpacityMask>
                                                            <LinearGradientBrush
                                                                EndPoint="0.76,0.77"
                                                                StartPoint="0.21,0.18">
                                                                <GradientStop
                                                                    Color="#7F000000"
                                                                    Offset="0" />
                                                                <GradientStop
                                                                    Color="#59000000"
                                                                    Offset="0.106" />
                                                                <GradientStop
                                                                    Color="#3F000000"
                                                                    Offset="0.387" />
                                                                <GradientStop
                                                                    Color="#99000000"
                                                                    Offset="0.703" />
                                                                <GradientStop
                                                                    Color="#CC000000"
                                                                    Offset="1" />
                                                            </LinearGradientBrush>
                                                        </Path.OpacityMask>
                                                    </Path>
                                                    <Path
                                                        Fill="{TemplateBinding Foreground}"
                                                        Stretch="Fill"
                                                        Height="6.74"
                                                        Width="6.81"
                                                        Canvas.Left="7.47"
                                                        Canvas.Top="1.89"
                                                        Data="M1.41,1.83 L0.71,2.54 L4.20,6.03 L4.91,5.33 z M3.24,0 L6.81,3.42 L3.5,6.74 L0,3.24 z" />
                                                    <Path
                                                        Stretch="Fill"
                                                        Stroke="{TemplateBinding Foreground}"
                                                        StrokeLineJoin="Round"
                                                        Height="12.5"
                                                        Width="12.43"
                                                        Canvas.Left="2.03"
                                                        Canvas.Top="1.50"
                                                        Data="F1 M 13.77,4.22L 11.73,2.18C 11.12,1.78 10.46,2.15 10,2.5L 3.04,9.45C 2.65,9.86 2.53,10.47 2.53,10.73L 2.53,13.5L 5.32,13.5C 5.57,13.5 6.33,13.36 6.64,12.93L 13.54,6.03C 13.86,5.72 14.17,4.74 13.77,4.22 Z" />
                                                    <Path
                                                        Fill="{TemplateBinding Foreground}"
                                                        Stretch="Fill"
                                                        Height="2.29"
                                                        Width="2.33"
                                                        Canvas.Left="2.58"
                                                        Canvas.Top="11.18"
                                                        Data="F1 M 2.033,11.71L 4.33,14L 2.62,14C 2.17,13.93 2.09,13.79 2,13.31L 2.03,11.71 Z" />
                                                </Canvas>
                                            </Grid>
                                        </Button>
                                        <Button
                                            x:Name="NewItemButton"
                                            Style="{StaticResource DataFormButtonStyle}"
                                            ToolTipService.ToolTip="Add">
                                            <Path
                                                Fill="{TemplateBinding Foreground}"
                                                Stretch="Fill"
                                                Height="9"
                                                HorizontalAlignment="Center"
                                                Margin="5"
                                                VerticalAlignment="Center"
                                                Width="9"
                                                Opacity="0.85"
                                                RenderTransformOrigin="0.5,0.5"
                                                Data="F1 M18.41,61.67 L19.56,60.52 L21.92,62.88 L24.22,60.57 L25.36,61.72 L23.06,64.03 L25.43,66.4 L24.22,67.60 L21.87,65.25 L19.56,67.56 L18.41,66.41 L20.73,64.08 L18.41,61.67 z">
                                                <Path.Effect>
                                                    <DropShadowEffect
                                                        BlurRadius="8"
                                                        Color="#FFFFFFFF"
                                                        Direction="100"
                                                        ShadowDepth="0" />
                                                </Path.Effect>
                                                <Path.OpacityMask>
                                                    <LinearGradientBrush
                                                        EndPoint="0.35,0.5"
                                                        StartPoint="-0.27,0.05">
                                                        <GradientStop
                                                            Color="#7F000000"
                                                            Offset="0" />
                                                        <GradientStop
                                                            Color="#BF000000"
                                                            Offset="0.25" />
                                                        <GradientStop
                                                            Color="#FF000000"
                                                            Offset="1" />
                                                    </LinearGradientBrush>
                                                </Path.OpacityMask>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform />
                                                        <SkewTransform />
                                                        <RotateTransform
                                                            Angle="45" />
                                                        <TranslateTransform
                                                            X="0.18"
                                                            Y="-0.07" />
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Button>
                                        <Button
                                            x:Name="DeleteItemButton"
                                            Style="{StaticResource DataFormButtonStyle}"
                                            ToolTipService.ToolTip="Delete">
                                            <Path
                                                Fill="{TemplateBinding Foreground}"
                                                Stretch="Fill"
                                                Height="9"
                                                HorizontalAlignment="Center"
                                                Margin="5,5,5,5"
                                                VerticalAlignment="Center"
                                                Width="9"
                                                Opacity="0.85"
                                                RenderTransformOrigin="0.5,0.5"
                                                Data="F1 M24.32,60.48 L25.60,61.76 L19.65,67.75 L18.37,66.46 z">
                                                <Path.Effect>
                                                    <DropShadowEffect
                                                        BlurRadius="8"
                                                        Color="#FFFFFFFF"
                                                        Direction="100"
                                                        ShadowDepth="0" />
                                                </Path.Effect>
                                                <Path.OpacityMask>
                                                    <LinearGradientBrush
                                                        EndPoint="0.74,0.66"
                                                        StartPoint="-0.44,-0.11">
                                                        <GradientStop
                                                            Color="#7F000000"
                                                            Offset="0" />
                                                        <GradientStop
                                                            Color="#BF000000"
                                                            Offset="0.25" />
                                                        <GradientStop
                                                            Color="#FF000000"
                                                            Offset="1" />
                                                    </LinearGradientBrush>
                                                </Path.OpacityMask>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <RotateTransform
                                                            Angle="45" />
                                                        <TranslateTransform
                                                            X="0.06"
                                                            Y="-0.01" />
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Button>
                                    </StackPanel>
                                </Grid>
                                <ScrollViewer
                                    Style="{StaticResource CustomScrollViewerStyle}"
                                    Background="{x:Null}"
                                    IsTabStop="False"
                                    Padding="{TemplateBinding Padding}"
                                    Grid.Row="1"
                                    VerticalScrollBarVisibility="Auto">
                                    <ContentPresenter
                                        x:Name="ContentPresenter"
                                        Margin="7,7,1,7" />
                                </ScrollViewer>
                                <sdk:ValidationSummary
                                    x:Name="ValidationSummary"
                                    MaxHeight="100"
                                    BorderThickness="0"
                                    Grid.Row="2" />
                                <StackPanel
                                    HorizontalAlignment="Right"
                                    Grid.Row="3"
                                    Orientation="Horizontal">
                                    <Button
                                        x:Name="CommitButton"
                                        Margin="0,5,8,5"
                                        MinHeight="17"
                                        MinWidth="71"
                                        Visibility="Collapsed"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"
                                        Content="OK"
                                        Style="{StaticResource DataFormButtonStyle}" />
                                </StackPanel>
                            </Grid>
                        </Border>
                        <Border
                            x:Name="DisabledVisual"
                            IsHitTestVisible="False"
                            Opacity="0"
                            Background="#8CFFFFFF"
                            CornerRadius="2" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        x:Key="TreeViewItemStyle1"
        TargetType="sdk:TreeViewItem">
        <Setter
            Property="Padding"
            Value="3" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="Left" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Top" />
        <Setter
            Property="Background"
            Value="Transparent" />
        <Setter
            Property="BorderThickness"
            Value="1" />
        <Setter
            Property="Cursor"
            Value="Arrow" />
        <Setter
            Property="IsTabStop"
            Value="True" />
        <Setter
            Property="TabNavigation"
            Value="Once" />
        <Setter
            Property="Margin"
            Value="0 1 0 0" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="sdk:TreeViewItem">
                    <Grid
                        Background="{x:Null}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition
                                Width="25" />
                            <ColumnDefinition
                                Width="Auto" />
                            <ColumnDefinition
                                Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition
                                Height="Auto" />
                            <RowDefinition
                                Height="*" />
                        </Grid.RowDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="MouseOver" />
                                <VisualState
                                    x:Name="Pressed" />
                                <VisualState
                                    x:Name="Disabled" />
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="SelectionStates">
                                <VisualState
                                    x:Name="Unselected" />
                                <VisualState
                                    x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".75"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="Selection" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="SelectedInactive">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".2"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="Selection" />
                                        <ColorAnimation
                                            Duration="0"
                                            To="#FF999999"
                                            Storyboard.TargetProperty="Color"
                                            Storyboard.TargetName="SelectionFill" />
                                        <ColorAnimation
                                            Duration="0"
                                            To="#FF333333"
                                            Storyboard.TargetProperty="Color"
                                            Storyboard.TargetName="SelectionStroke" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="HasItemsStates">
                                <VisualState
                                    x:Name="HasItems" />
                                <VisualState
                                    x:Name="NoItems">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetProperty="Visibility"
                                            Storyboard.TargetName="ExpanderButton">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ExpansionStates">
                                <VisualState
                                    x:Name="Collapsed" />
                                <VisualState
                                    x:Name="Expanded">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetProperty="Visibility"
                                            Storyboard.TargetName="ItemsHost">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ValidationStates">
                                <VisualState
                                    x:Name="Valid" />
                                <VisualState
                                    x:Name="InvalidUnfocused" />
                                <VisualState
                                    x:Name="InvalidFocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ToggleButton
                            x:Name="ExpanderButton"
                            HorizontalAlignment="Stretch"
                            IsTabStop="False"
                            TabNavigation="Once"
                            VerticalAlignment="Stretch">
                            <ToggleButton.Template>
                                <ControlTemplate
                                    TargetType="ToggleButton">
                                    <Grid>
                                        <VisualStateManager.VisualStateGroups>
                                            <VisualStateGroup
                                                x:Name="CheckStates">
                                                <VisualStateGroup.Transitions>
                                                    <VisualTransition
                                                        GeneratedDuration="00:00:00" />
                                                </VisualStateGroup.Transitions>
                                                <VisualState
                                                    x:Name="Checked">
                                                    <Storyboard>
                                                        <DoubleAnimationUsingKeyFrames
                                                            BeginTime="00:00:00"
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="arrowDown"
                                                            Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                            <SplineDoubleKeyFrame
                                                                KeyTime="00:00:00"
                                                                Value="-1" />
                                                        </DoubleAnimationUsingKeyFrames>
                                                        <DoubleAnimationUsingKeyFrames
                                                            BeginTime="00:00:00"
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="HoverBackground"
                                                            Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                            <SplineDoubleKeyFrame
                                                                KeyTime="00:00:00"
                                                                Value="-1" />
                                                        </DoubleAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Unchecked" />
                                            </VisualStateGroup>
                                            <VisualStateGroup
                                                x:Name="CommonStates">
                                                <VisualStateGroup.Transitions>
                                                    <VisualTransition
                                                        GeneratedDuration="0" />
                                                    <VisualTransition
                                                        GeneratedDuration="00:00:00.1"
                                                        To="MouseOver" />
                                                    <VisualTransition
                                                        GeneratedDuration="00:00:00.1"
                                                        To="Pressed" />
                                                </VisualStateGroup.Transitions>
                                                <VisualState
                                                    x:Name="Normal" />
                                                <VisualState
                                                    x:Name="MouseOver">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circleOver1"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circleOver2"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circleOver3"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="HoverBackground"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Pressed">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circlePress1"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circlePress2"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circlePress3"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="HoverBackground"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                    </Storyboard>
                                                </VisualState>
                                            </VisualStateGroup>
                                            <VisualStateGroup
                                                x:Name="FocusStates">
                                                <VisualState
                                                    x:Name="Focused">
                                                    <Storyboard>
                                                        <ObjectAnimationUsingKeyFrames
                                                            Duration="0"
                                                            Storyboard.TargetName="FocusBackground"
                                                            Storyboard.TargetProperty="Visibility">
                                                            <DiscreteObjectKeyFrame
                                                                KeyTime="0"
                                                                Value="Visible" />
                                                        </ObjectAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Unfocused" />
                                            </VisualStateGroup>
                                        </VisualStateManager.VisualStateGroups>
                                        <Rectangle
                                            x:Name="HoverBackground"
                                            Fill="{StaticResource hoverGradient}"
                                            Stroke="{StaticResource hoverStroke}"
                                            RadiusX="2"
                                            RadiusY="2"
                                            Opacity="0"
                                            RenderTransformOrigin="0.5,0.5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform />
                                                    <SkewTransform />
                                                    <RotateTransform />
                                                    <TranslateTransform />
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Grid
                                            Margin="{TemplateBinding Padding}">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition
                                                    Width="18" />
                                                <ColumnDefinition
                                                    Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <Grid
                                                Height="18"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Top">
                                                <Ellipse
                                                    x:Name="circleOver1"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowHoverFill1}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circleOver2"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowHoverFill2}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circleOver3"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowHoverFill3}"
                                                    Stroke="{StaticResource expanderArrowStroke}"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circlePress1"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowPressedFill1}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circlePress2"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowPressedFill2}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circlePress3"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowPressedFill3}"
                                                    Stroke="{StaticResource expanderArrowStroke}"
                                                    Opacity="0" />
                                                <Path
                                                    x:Name="arrowDown"
                                                    StrokeThickness="2"
                                                    Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                                    HorizontalAlignment="Center"
                                                    VerticalAlignment="Center"
                                                    RenderTransformOrigin="0.5,0.5">
                                                    <Path.Stroke>
                                                        <SolidColorBrush
                                                            Color="{StaticResource Arrow}" />
                                                    </Path.Stroke>
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform />
                                                            <SkewTransform />
                                                            <RotateTransform />
                                                            <TranslateTransform />
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                            </Grid>
                                            <ContentPresenter
                                                x:Name="header"
                                                Margin="4,0,0,0"
                                                Grid.Column="1"
                                                Content="{TemplateBinding Content}"
                                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Center"
                                                IsHitTestVisible="false" />
                                        </Grid>
                                        <Rectangle
                                            x:Name="FocusBackground"
                                            Stroke="{StaticResource selectedStroke}"
                                            RadiusX="2"
                                            RadiusY="2"
                                            IsHitTestVisible="false"
                                            Visibility="Collapsed"
                                            Opacity="0.84" />
                                    </Grid>
                                </ControlTemplate>
                            </ToggleButton.Template>
                        </ToggleButton>
                        <Rectangle
                            x:Name="Selection"
                            Grid.Column="1"
                            IsHitTestVisible="False"
                            Opacity="0"
                            RadiusY="2"
                            RadiusX="2"
                            StrokeThickness="1">
                            <Rectangle.Fill>
                                <SolidColorBrush
                                    x:Name="SelectionFill"
                                    Color="#FFBADDE9" />
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <SolidColorBrush
                                    x:Name="SelectionStroke"
                                    Color="#FF6DBDD1" />
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Button
                            x:Name="Header"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            Cursor="{TemplateBinding Cursor}"
                            ClickMode="Hover"
                            Grid.Column="1"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            IsTabStop="False"
                            TabNavigation="Once"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            FontWeight="Bold">
                            <Button.Foreground>
                                <SolidColorBrush
                                    Color="{StaticResource Arrow}" />
                            </Button.Foreground>
                            <Button.Template>
                                <ControlTemplate
                                    TargetType="Button">
                                    <Grid
                                        Background="{TemplateBinding Background}">
                                        <VisualStateManager.VisualStateGroups>
                                            <VisualStateGroup
                                                x:Name="CommonStates">
                                                <VisualState
                                                    x:Name="Normal" />
                                                <VisualState
                                                    x:Name="Pressed">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="0"
                                                            To=".5"
                                                            Storyboard.TargetProperty="Opacity"
                                                            Storyboard.TargetName="Hover" />
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Disabled">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="0"
                                                            To=".55"
                                                            Storyboard.TargetProperty="Opacity"
                                                            Storyboard.TargetName="Content" />
                                                    </Storyboard>
                                                </VisualState>
                                            </VisualStateGroup>
                                        </VisualStateManager.VisualStateGroups>
                                        <Rectangle
                                            x:Name="Hover"
                                            Fill="#FFBADDE9"
                                            IsHitTestVisible="False"
                                            Opacity="0"
                                            RadiusY="2"
                                            RadiusX="2"
                                            Stroke="#FF6DBDD1"
                                            StrokeThickness="1" />
                                        <ContentPresenter
                                            x:Name="Content"
                                            Cursor="{TemplateBinding Cursor}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            Content="{TemplateBinding Content}"
                                            HorizontalAlignment="Left"
                                            Margin="{TemplateBinding Padding}" />
                                    </Grid>
                                </ControlTemplate>
                            </Button.Template>
                            <ContentPresenter
                                ContentTemplate="{TemplateBinding HeaderTemplate}"
                                Content="{TemplateBinding Header}" />
                        </Button>
                        <ItemsPresenter
                            x:Name="ItemsHost"
                            Grid.ColumnSpan="2"
                            Grid.Column="1"
                            Grid.Row="1"
                            Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate
        x:Key="TreeViewItemControlTemplate1"
        TargetType="sdk:TreeViewItem">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup
                    x:Name="CommonStates">
                    <VisualState
                        x:Name="Normal" />
                    <VisualState
                        x:Name="Disabled" />
                </VisualStateGroup>
                <VisualStateGroup
                    x:Name="SelectionStates">
                    <VisualState
                        x:Name="Unselected" />
                    <VisualState
                        x:Name="Selected">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="select_gradient"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="select_highlight"
                                Storyboard.TargetProperty="Opacity"
                                To="1" />
                        </Storyboard>
                    </VisualState>
                    <VisualState
                        x:Name="SelectedInactive">
                        <Storyboard>
                            <DoubleAnimation
                                Duration="0"
                                Storyboard.TargetName="inactive"
                                Storyboard.TargetProperty="Opacity"
                                To=".2" />
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup
                    x:Name="HasItemsStates">
                    <VisualState
                        x:Name="HasItems" />
                    <VisualState
                        x:Name="NoItems">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames
                                Duration="0"
                                Storyboard.TargetName="ExpanderButton"
                                Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame
                                    KeyTime="0"
                                    Value="Collapsed" />
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup
                    x:Name="ExpansionStates">
                    <VisualState
                        x:Name="Collapsed" />
                    <VisualState
                        x:Name="Expanded">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames
                                Duration="0"
                                Storyboard.TargetName="ItemsHost"
                                Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame
                                    KeyTime="0"
                                    Value="Visible" />
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RowDefinitions>
                <RowDefinition
                    Height="Auto" />
                <RowDefinition
                    Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition
                    Width="25" />
                <ColumnDefinition
                    Width="Auto" />
                <ColumnDefinition
                    Width="*" />
            </Grid.ColumnDefinitions>
            <ToggleButton
                x:Name="ExpanderButton"
                HorizontalAlignment="Stretch"
                IsTabStop="False"
                TabNavigation="Once"
                VerticalAlignment="Stretch">
                <ToggleButton.Template>
                    <ControlTemplate
                        TargetType="ToggleButton">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup
                                    x:Name="CheckStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition
                                            GeneratedDuration="00:00:00" />
                                    </VisualStateGroup.Transitions>
                                    <VisualState
                                        x:Name="Checked">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames
                                                BeginTime="00:00:00"
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="arrowDown"
                                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame
                                                    KeyTime="00:00:00"
                                                    Value="-1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames
                                                BeginTime="00:00:00"
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="HoverBackground"
                                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame
                                                    KeyTime="00:00:00"
                                                    Value="-1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState
                                        x:Name="Unchecked" />
                                </VisualStateGroup>
                                <VisualStateGroup
                                    x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition
                                            GeneratedDuration="0" />
                                        <VisualTransition
                                            GeneratedDuration="00:00:00.1"
                                            To="MouseOver" />
                                        <VisualTransition
                                            GeneratedDuration="00:00:00.1"
                                            To="Pressed" />
                                    </VisualStateGroup.Transitions>
                                    <VisualState
                                        x:Name="Normal" />
                                    <VisualState
                                        x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="circleOver1"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="circleOver2"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="circleOver3"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="HoverBackground"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState
                                        x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="circlePress1"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="circlePress2"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="circlePress3"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                            <DoubleAnimation
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="HoverBackground"
                                                Storyboard.TargetProperty="Opacity"
                                                To="1" />
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup
                                    x:Name="FocusStates">
                                    <VisualState
                                        x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames
                                                Duration="0"
                                                Storyboard.TargetName="FocusBackground"
                                                Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame
                                                    KeyTime="0"
                                                    Value="Visible" />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState
                                        x:Name="Unfocused" />
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Rectangle
                                x:Name="HoverBackground"
                                Fill="{StaticResource hoverGradient}"
                                Stroke="{StaticResource hoverStroke}"
                                RadiusX="2"
                                RadiusY="2"
                                Opacity="0"
                                RenderTransformOrigin="0.5,0.5">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>
                            <Grid
                                Margin="{TemplateBinding Padding}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition
                                        Width="18" />
                                    <ColumnDefinition
                                        Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid
                                    Height="18"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Top">
                                    <Ellipse
                                        x:Name="circleOver1"
                                        Height="18"
                                        Width="18"
                                        Fill="{StaticResource ExpanderArrowHoverFill1}"
                                        Stroke="#00000000"
                                        Opacity="0" />
                                    <Ellipse
                                        x:Name="circleOver2"
                                        Height="18"
                                        Width="18"
                                        Fill="{StaticResource ExpanderArrowHoverFill2}"
                                        Stroke="#00000000"
                                        Opacity="0" />
                                    <Ellipse
                                        x:Name="circleOver3"
                                        Height="18"
                                        Width="18"
                                        Fill="{StaticResource ExpanderArrowHoverFill3}"
                                        Stroke="{StaticResource expanderArrowStroke}"
                                        Opacity="0" />
                                    <Ellipse
                                        x:Name="circlePress1"
                                        Height="18"
                                        Width="18"
                                        Fill="{StaticResource ExpanderArrowPressedFill1}"
                                        Stroke="#00000000"
                                        Opacity="0" />
                                    <Ellipse
                                        x:Name="circlePress2"
                                        Height="18"
                                        Width="18"
                                        Fill="{StaticResource ExpanderArrowPressedFill2}"
                                        Stroke="#00000000"
                                        Opacity="0" />
                                    <Ellipse
                                        x:Name="circlePress3"
                                        Height="18"
                                        Width="18"
                                        Fill="{StaticResource ExpanderArrowPressedFill3}"
                                        Stroke="{StaticResource expanderArrowStroke}"
                                        Opacity="0" />
                                    <Path
                                        x:Name="arrowDown"
                                        StrokeThickness="2"
                                        Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        RenderTransformOrigin="0.5,0.5">
                                        <Path.Stroke>
                                            <SolidColorBrush
                                                Color="{StaticResource Arrow}" />
                                        </Path.Stroke>
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform />
                                                <SkewTransform />
                                                <RotateTransform />
                                                <TranslateTransform />
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                </Grid>
                                <ContentPresenter
                                    x:Name="header"
                                    Margin="4,0,0,0"
                                    Grid.Column="1"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Center"
                                    IsHitTestVisible="false" />
                            </Grid>
                            <Rectangle
                                x:Name="FocusBackground"
                                Stroke="{StaticResource selectedStroke}"
                                RadiusX="2"
                                RadiusY="2"
                                IsHitTestVisible="false"
                                Visibility="Collapsed"
                                Opacity="0.84" />
                        </Grid>
                    </ControlTemplate>
                </ToggleButton.Template>
            </ToggleButton>
            <Rectangle
                x:Name="select_gradient"
                Grid.Column="1"
                Fill="{StaticResource BtnOverFill}"
                Stroke="{StaticResource selectedStroke}"
                StrokeThickness="1"
                RadiusX="2"
                RadiusY="2"
                Opacity="0"
                IsHitTestVisible="False" />
            <Rectangle
                x:Name="select_highlight"
                Margin="1"
                Grid.Column="1"
                Stroke="#A0FFFFFF"
                Opacity="0" />
            <Rectangle
                x:Name="inactive"
                Grid.Column="1"
                Fill="#FF999999"
                Stroke="#FF333333"
                StrokeThickness="1"
                RadiusX="2"
                RadiusY="2"
                Opacity="0"
                IsHitTestVisible="False" />
            <Button
                x:Name="Header"
                Grid.Column="1"
                FontFamily="{TemplateBinding FontFamily}"
                FontSize="{TemplateBinding FontSize}"
                Padding="{TemplateBinding Padding}"
                Content="{TemplateBinding Header}"
                ContentTemplate="{TemplateBinding HeaderTemplate}"
                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                Cursor="{TemplateBinding Cursor}"
                ClickMode="Hover"
                IsTabStop="False"
                FontWeight="Bold">
                <Button.Foreground>
                    <SolidColorBrush
                        Color="{StaticResource Arrow}" />
                </Button.Foreground>
                <Button.Template>
                    <ControlTemplate
                        TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup
                                    x:Name="CommonStates">
                                    <VisualState
                                        x:Name="Normal" />
                                    <VisualState
                                        x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="0"
                                                Storyboard.TargetName="highlight"
                                                Storyboard.TargetProperty="Opacity"
                                                To="0.65" />
                                            <DoubleAnimationUsingKeyFrames
                                                BeginTime="00:00:00"
                                                Duration="00:00:00.0010000"
                                                Storyboard.TargetName="hover_gradient"
                                                Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame
                                                    KeyTime="00:00:00"
                                                    Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState
                                        x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="0"
                                                Storyboard.TargetName="content"
                                                Storyboard.TargetProperty="Opacity"
                                                To=".55" />
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Rectangle
                                x:Name="hover_gradient"
                                Fill="{StaticResource hoverGradient}"
                                Stroke="{StaticResource hoverStroke}"
                                StrokeThickness="1"
                                RadiusX="2"
                                RadiusY="2"
                                Opacity="0"
                                IsHitTestVisible="False" />
                            <Rectangle
                                x:Name="highlight"
                                Margin="1"
                                StrokeThickness="1"
                                RadiusX="1"
                                RadiusY="1"
                                Opacity="0"
                                IsHitTestVisible="False"
                                Stroke="#FFFFFFFF" />
                            <ContentPresenter
                                x:Name="content"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Center"
                                Cursor="{TemplateBinding Cursor}" />
                        </Grid>
                    </ControlTemplate>
                </Button.Template>
            </Button>
            <ItemsPresenter
                x:Name="ItemsHost"
                Grid.Column="1"
                Grid.ColumnSpan="2"
                Grid.Row="1"
                Visibility="Collapsed" />
        </Grid>
    </ControlTemplate>
    <Style
        x:Key="TreeViewItemStyle2"
        TargetType="sdk:TreeViewItem">
        <Setter
            Property="Padding"
            Value="3" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="Left" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Top" />
        <Setter
            Property="Background"
            Value="Transparent" />
        <Setter
            Property="BorderThickness"
            Value="1" />
        <Setter
            Property="Cursor"
            Value="Arrow" />
        <Setter
            Property="IsTabStop"
            Value="True" />
        <Setter
            Property="TabNavigation"
            Value="Once" />
        <Setter
            Property="Margin"
            Value="0 1 0 0" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="sdk:TreeViewItem">
                    <Grid
                        Background="{x:Null}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition
                                Width="25" />
                            <ColumnDefinition
                                Width="Auto" />
                            <ColumnDefinition
                                Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition
                                Height="Auto" />
                            <RowDefinition
                                Height="*" />
                        </Grid.RowDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="MouseOver" />
                                <VisualState
                                    x:Name="Pressed" />
                                <VisualState
                                    x:Name="Disabled" />
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="SelectionStates">
                                <VisualState
                                    x:Name="Unselected" />
                                <VisualState
                                    x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".75"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="Selection" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="SelectedInactive">
                                    <Storyboard>
                                        <DoubleAnimation
                                            Duration="0"
                                            To=".2"
                                            Storyboard.TargetProperty="Opacity"
                                            Storyboard.TargetName="Selection" />
                                        <ColorAnimation
                                            Duration="0"
                                            To="#FF999999"
                                            Storyboard.TargetProperty="Color"
                                            Storyboard.TargetName="SelectionFill" />
                                        <ColorAnimation
                                            Duration="0"
                                            To="#FF333333"
                                            Storyboard.TargetProperty="Color"
                                            Storyboard.TargetName="SelectionStroke" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="HasItemsStates">
                                <VisualState
                                    x:Name="HasItems" />
                                <VisualState
                                    x:Name="NoItems">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetProperty="Visibility"
                                            Storyboard.TargetName="ExpanderButton">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ExpansionStates">
                                <VisualState
                                    x:Name="Collapsed" />
                                <VisualState
                                    x:Name="Expanded">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames
                                            Duration="0"
                                            Storyboard.TargetProperty="Visibility"
                                            Storyboard.TargetName="ItemsHost">
                                            <DiscreteObjectKeyFrame
                                                KeyTime="0"
                                                Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="ValidationStates">
                                <VisualState
                                    x:Name="Valid" />
                                <VisualState
                                    x:Name="InvalidUnfocused" />
                                <VisualState
                                    x:Name="InvalidFocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ToggleButton
                            x:Name="ExpanderButton"
                            HorizontalAlignment="Stretch"
                            IsTabStop="False"
                            TabNavigation="Once"
                            VerticalAlignment="Stretch">
                            <ToggleButton.Template>
                                <ControlTemplate
                                    TargetType="ToggleButton">
                                    <Grid>
                                        <VisualStateManager.VisualStateGroups>
                                            <VisualStateGroup
                                                x:Name="CheckStates">
                                                <VisualStateGroup.Transitions>
                                                    <VisualTransition
                                                        GeneratedDuration="00:00:00" />
                                                </VisualStateGroup.Transitions>
                                                <VisualState
                                                    x:Name="Checked">
                                                    <Storyboard>
                                                        <DoubleAnimationUsingKeyFrames
                                                            BeginTime="00:00:00"
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="arrowDown"
                                                            Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                            <SplineDoubleKeyFrame
                                                                KeyTime="00:00:00"
                                                                Value="-1" />
                                                        </DoubleAnimationUsingKeyFrames>
                                                        <DoubleAnimationUsingKeyFrames
                                                            BeginTime="00:00:00"
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="HoverBackground"
                                                            Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                            <SplineDoubleKeyFrame
                                                                KeyTime="00:00:00"
                                                                Value="-1" />
                                                        </DoubleAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Unchecked" />
                                            </VisualStateGroup>
                                            <VisualStateGroup
                                                x:Name="CommonStates">
                                                <VisualStateGroup.Transitions>
                                                    <VisualTransition
                                                        GeneratedDuration="0" />
                                                    <VisualTransition
                                                        GeneratedDuration="00:00:00.1"
                                                        To="MouseOver" />
                                                    <VisualTransition
                                                        GeneratedDuration="00:00:00.1"
                                                        To="Pressed" />
                                                </VisualStateGroup.Transitions>
                                                <VisualState
                                                    x:Name="Normal" />
                                                <VisualState
                                                    x:Name="MouseOver">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circleOver1"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circleOver2"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circleOver3"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="HoverBackground"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Pressed">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circlePress1"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circlePress2"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="circlePress3"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                        <DoubleAnimation
                                                            Duration="00:00:00.0010000"
                                                            Storyboard.TargetName="HoverBackground"
                                                            Storyboard.TargetProperty="Opacity"
                                                            To="1" />
                                                    </Storyboard>
                                                </VisualState>
                                            </VisualStateGroup>
                                            <VisualStateGroup
                                                x:Name="FocusStates">
                                                <VisualState
                                                    x:Name="Focused">
                                                    <Storyboard>
                                                        <ObjectAnimationUsingKeyFrames
                                                            Duration="0"
                                                            Storyboard.TargetName="FocusBackground"
                                                            Storyboard.TargetProperty="Visibility">
                                                            <DiscreteObjectKeyFrame
                                                                KeyTime="0"
                                                                Value="Visible" />
                                                        </ObjectAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Unfocused" />
                                            </VisualStateGroup>
                                        </VisualStateManager.VisualStateGroups>
                                        <Rectangle
                                            x:Name="HoverBackground"
                                            Fill="{StaticResource hoverGradient}"
                                            Stroke="{StaticResource hoverStroke}"
                                            RadiusX="2"
                                            RadiusY="2"
                                            Opacity="0"
                                            RenderTransformOrigin="0.5,0.5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform />
                                                    <SkewTransform />
                                                    <RotateTransform />
                                                    <TranslateTransform />
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Grid
                                            Margin="{TemplateBinding Padding}">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition
                                                    Width="18" />
                                                <ColumnDefinition
                                                    Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <Grid
                                                Height="18"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Top">
                                                <Ellipse
                                                    x:Name="circleOver1"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowHoverFill1}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circleOver2"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowHoverFill2}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circleOver3"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowHoverFill3}"
                                                    Stroke="{StaticResource expanderArrowStroke}"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circlePress1"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowPressedFill1}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circlePress2"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowPressedFill2}"
                                                    Stroke="#00000000"
                                                    Opacity="0" />
                                                <Ellipse
                                                    x:Name="circlePress3"
                                                    Height="18"
                                                    Width="18"
                                                    Fill="{StaticResource ExpanderArrowPressedFill3}"
                                                    Stroke="{StaticResource expanderArrowStroke}"
                                                    Opacity="0" />
                                                <Path
                                                    x:Name="arrowDown"
                                                    StrokeThickness="2"
                                                    Data="M 1,1.5 L 4.5,5 L 8,1.5"
                                                    HorizontalAlignment="Center"
                                                    VerticalAlignment="Center"
                                                    RenderTransformOrigin="0.5,0.5">
                                                    <Path.Stroke>
                                                        <SolidColorBrush
                                                            Color="{StaticResource Arrow}" />
                                                    </Path.Stroke>
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform />
                                                            <SkewTransform />
                                                            <RotateTransform />
                                                            <TranslateTransform />
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                            </Grid>
                                            <ContentPresenter
                                                x:Name="header"
                                                Margin="4,0,0,0"
                                                Grid.Column="1"
                                                Content="{TemplateBinding Content}"
                                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Center"
                                                IsHitTestVisible="false" />
                                        </Grid>
                                        <Rectangle
                                            x:Name="FocusBackground"
                                            Stroke="{StaticResource selectedStroke}"
                                            RadiusX="2"
                                            RadiusY="2"
                                            IsHitTestVisible="false"
                                            Visibility="Collapsed"
                                            Opacity="0.84" />
                                    </Grid>
                                </ControlTemplate>
                            </ToggleButton.Template>
                        </ToggleButton>
                        <Rectangle
                            x:Name="Selection"
                            Grid.Column="1"
                            IsHitTestVisible="False"
                            Opacity="0"
                            RadiusY="2"
                            RadiusX="2"
                            StrokeThickness="1">
                            <Rectangle.Fill>
                                <SolidColorBrush
                                    x:Name="SelectionFill"
                                    Color="#FFBADDE9" />
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <SolidColorBrush
                                    x:Name="SelectionStroke"
                                    Color="#FF6DBDD1" />
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Button
                            x:Name="Header"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            Cursor="{TemplateBinding Cursor}"
                            ClickMode="Hover"
                            Grid.Column="1"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            IsTabStop="False"
                            TabNavigation="Once"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            FontWeight="Bold"
                            Foreground="Black">
                            <Button.Template>
                                <ControlTemplate
                                    TargetType="Button">
                                    <Grid
                                        Background="{TemplateBinding Background}">
                                        <VisualStateManager.VisualStateGroups>
                                            <VisualStateGroup
                                                x:Name="CommonStates">
                                                <VisualState
                                                    x:Name="Normal" />
                                                <VisualState
                                                    x:Name="Pressed">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="0"
                                                            To=".5"
                                                            Storyboard.TargetProperty="Opacity"
                                                            Storyboard.TargetName="Hover" />
                                                    </Storyboard>
                                                </VisualState>
                                                <VisualState
                                                    x:Name="Disabled">
                                                    <Storyboard>
                                                        <DoubleAnimation
                                                            Duration="0"
                                                            To=".55"
                                                            Storyboard.TargetProperty="Opacity"
                                                            Storyboard.TargetName="Content" />
                                                    </Storyboard>
                                                </VisualState>
                                            </VisualStateGroup>
                                        </VisualStateManager.VisualStateGroups>
                                        <Rectangle
                                            x:Name="Hover"
                                            Fill="#FFBADDE9"
                                            IsHitTestVisible="False"
                                            Opacity="0"
                                            RadiusY="2"
                                            RadiusX="2"
                                            Stroke="#FF6DBDD1"
                                            StrokeThickness="1" />
                                        <ContentPresenter
                                            x:Name="Content"
                                            Cursor="{TemplateBinding Cursor}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            Content="{TemplateBinding Content}"
                                            HorizontalAlignment="Left"
                                            Margin="{TemplateBinding Padding}" />
                                    </Grid>
                                </ControlTemplate>
                            </Button.Template>
                            <ContentPresenter
                                ContentTemplate="{TemplateBinding HeaderTemplate}"
                                Content="{TemplateBinding Header}" />
                        </Button>
                        <ItemsPresenter
                            x:Name="ItemsHost"
                            Grid.ColumnSpan="2"
                            Grid.Column="1"
                            Grid.Row="1"
                            Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <sdk:HierarchicalDataTemplate
        x:Key="TreeViewItemDataTemplate"
        ItemsSource="{Binding Subclasses}"
        ItemContainerStyle="{StaticResource TreeViewItemStyle1}">
        <StackPanel>
                <TextBlock
                    Text="{Binding Rank}"
                    FontSize="8"
                    FontStyle="Italic"
                    Margin="0 0 0 -5" />
                <TextBlock
                    Text="{Binding Classification}" />
            </StackPanel>
    </sdk:HierarchicalDataTemplate>


</ResourceDictionary>